/* ============================================================
   Booking Widget – Front-end styles
   File: _css/booking.css
   ============================================================ */

/* ── Container ───────────────────────────────────────────── */
.booking-widget {
	max-width: 1100px;
	margin: 0 auto;
	font-family: inherit;
	color: inherit;
}

/* ── Steps ───────────────────────────────────────────────── */
.booking-step {
	padding: 8px 0 24px;
}

.booking-step-title {
	font-weight: 400;
	margin: 0 0 16px;
}
#booking-step-nav-header {
	display: flex;
	gap: 2.5rem;
	margin-bottom: 24px;
	font-weight: 500;
}
h2.step-title { text-transform: uppercase;}
#booking-step-nav-header > .booking-step-nav-item:not(.active) {
	opacity: .3;
}

/* ── Step 1: Ticket table ────────────────────────────────── */
.booking-ticket-table {
	width: 100%;
	max-width: 800px;
	border-collapse: collapse;
	margin-bottom: 16px;
}

.booking-ticket-table td {
	padding: 10px 12px 10px 0;
	vertical-align: middle;
	/* border-bottom: 1px solid #eee; */
}

.booking-ticket-name {
	width: 60%;
}

.booking-ticket-name strong {
	display: block;
	font-size: 1em;
}

.booking-ticket-info {
	display: block;
	font-size: .85em;
	/* opacity: .65; */
	margin-top: 2px;
}

.booking-ticket-price {
	white-space: nowrap;
	text-align: right;
	width: 20%;
}

.booking-ticket-qty {
	white-space: nowrap;
	text-align: right;
	width: 20%;
}

.booking-qty-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border: 1px solid #000;
	background: #fff;
	font-size: 1.1em;
	cursor: pointer;
	line-height: 1;
	border-radius: 2px;
	padding: 0;
	-webkit-appearance: none;
}

.booking-qty-btn:hover {
	background: #f0f0f0;
	color: #000;
}
.booking-qty-plus {
	background-color: #000;
	color: #fff;
}
.booking-qty-value {
	display: inline-block;
	min-width: 24px;
	text-align: center;
	font-size: 1em;
	/* font-weight: bold; */
	vertical-align: middle;
	margin: 0 .25rem;
}
[data-max="0"] .booking-qty-btn {
	opacity: .4;
	cursor: default;
	pointer-events: none;
}
/* ── Step 2: Tour options ────────────────────────────────── */
.booking-tour-intro {
	margin: 0 0 12px;
}

.booking-tour-options {
	max-width: 800px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 12px;
}

.booking-tour-option {
	display: flex;
	padding: 4px 0;
	cursor: pointer;
	transition: border-color .15s;
}

.booking-tour-option:hover {
	border-color: #888;
}

.booking-tour-option input[type="radio"] {
	margin-right: 8px;
	margin-top: 0;
}

.booking-tour-name {
	font-weight: 500;
}

.booking-tour-price {
	/* font-size: .9em; */
	margin-left: auto;
}

.booking-tour-max {
	/* font-size: .8em; */
	/* opacity: .6; */
	margin-left: 8px;
}

.booking-tour-desc {
	display: block;
	font-size: .85em;
	opacity: .65;
	margin-top: 4px;
}

.booking-tour-note {
	margin: 0 0 12px;
}

.calender-and-timeslots-wrapper {
	display: flex;
	/* flex-direction: column; */
	gap: 2rem;
}
/* ── Step 3: Calendar ────────────────────────────────────── */
.booking-calendar {
	margin-bottom: 12px;
    min-height: 290px;
	min-width: 300px;
}

.booking-cal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
}

.booking-cal-nav {
	display: inline-block;
	padding: 4px 12px;
	text-decoration: none;
	border: none;
	-webkit-appearance: none;
	border-radius: 2px;
	font-size: .9em;
	color: inherit;
	background-color: transparent;
}

.booking-cal-nav:hover {
	background: #f0f0f0;
}

.booking-cal-month {
	/* font-weight: bold; */
	font-size: 1em;
}

.booking-cal-table {
	width: 100%;
    max-width: 300px;
	border-collapse: collapse;
    table-layout: fixed;
}
.booking-cal-table th,
.booking-cal-table td {
    max-width: 40px;
}

.booking-cal-table th {
	padding: 4px 2px;
	text-align: center;
	font-size: .8em;
	font-weight: normal;
	opacity: .6;
	/* border-bottom: 1px solid #eee; */
}
.booking-cal-unavailable {
    opacity: .3;
	font-weight: 400;
    background-color: #efefef;
	cursor: default;
}
.booking-cal-table td {
	text-align: center;
	padding: 3px 2px;
	font-weight: 500;
	border: 1px solid #000;
}
.booking-cal-table td:not(.booking-cal-unavailable) {
	cursor: pointer;
}
.booking-cal-table td.booking-cal-empty {
	border: none;
}
.booking-cal-table td.is-selected {
	background-color: #111;
	color: #fff;
}
.booking-tour-days {
    font-size: 14px;
}
.booking-cal-day {
	width: 36px;
	height: 36px;
	line-height: 36px;
	font-size: .9em;
}

.booking-cal-day-available {
	cursor: pointer;
	font-weight: bold;
	background: #111;
	color: #fff;
	border-radius: 2px;
}

.booking-cal-day-available:hover,
.booking-cal-day-available.is-selected {
	background: #555;
	color: #fff;
}

.booking-cal-day-unavailable {
	opacity: .3;
	cursor: default;
}

.booking-cal-day-today {
	outline: 2px solid #aaa;
}

.booking-cal-empty {
	/* empty cells */
}

.booking-loading {
	font-size: .9em;
	opacity: .6;
}

/* ── Step 4: Timeslots ───────────────────────────────────── */
.booking-timeslots {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 12px;
}

.booking-timeslot-option {
	display: flex;
    gap: .5rem;
	padding: 6px 0;
	cursor: pointer;
}
span.booking-slot-time:before {
	content: ' - '
}
.booking-timeslot-option:hover {
	border-color: #888;
}

.booking-timeslot-option input[type="radio"] {
	margin-right: 8px;
}

.booking-timeslot-name {
	font-weight: bold;
}

.booking-timeslot-time {
	font-size: .85em;
	margin-left: 8px;
	opacity: .7;
}

.booking-timeslot-available {
	font-size: .8em;
	margin-left: 8px;
	opacity: .55;
}

.booking-timeslot-unavailable {
	opacity: .4;
	cursor: not-allowed;
}

.booking-timeslot-unavailable input {
	cursor: not-allowed;
}

/* ── Step 4: Checkout – 2-column grid ───────────────────── */
form#booking-checkout-form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-rows: auto auto;
	column-gap: 3rem;
	row-gap: 2rem;
	align-items: start;
}

form#booking-checkout-form #booking-summary             { grid-column: 1; grid-row: 1; min-width: 0; }
form#booking-checkout-form .booking-form-inputs         { grid-column: 2; grid-row: 1; min-width: 0; }
form#booking-checkout-form .booking-step-nav            { grid-column: 1; grid-row: 2; align-self: end; }
form#booking-checkout-form #form-submit-n-feedback-wrapper { grid-column: 2; grid-row: 2; align-self: end; }

.booking-summary-title,
.booking-summary {
	font-weight: 400;
	font-size: 1rem;
}
#booking-summary {
	min-width: 490px;
	max-width: 100%;
}

.booking-summary-date {
	/* font-weight: bold; */
	margin: 0 0 10px;
	font-size: 1em;
}

.booking-cost-table {
	width: 100%;
	border-collapse: collapse;
	font-size: .95em;
	font-weight: 300;
}

.booking-cost-table td {
	padding: 4px 0;
	padding-right: 8px;
}
.booking-cost-table td.booking-cost-price {
	min-width: 70px;
}

.booking-cost-table td:last-child {
	text-align: right;
	white-space: nowrap;
	padding-right: 0;
}

.booking-cost-table tfoot td {
	border-top: 1px solid #000;
	padding-top: 8px;
}
.booking-cost-table tfoot td strong {
	font-weight: 500;
}

.booking-form-row {
	margin-bottom: 14px;
	min-width: 440px;
	max-width: 100%;
}
.booking-form-row.two-columns {
	display: flex;
	gap: 14px;
}

.booking-form-row label {
	display: block;
	font-size: .9em;
	font-weight: bold;
	margin-bottom: 4px;
}

.booking-form-row input,
.booking-form-row textarea {
	width: 100%;
	padding: 8px 20px;
	border: 1px solid #000;
	border-radius: 2px;
	font-family: inherit;
	font-size: 1em;
	box-sizing: border-box;
	border-radius: 20px;
}
.booking-form-row input[type="checkbox"] {
	width: auto;
	margin-right: .5rem;
}
.booking-notice {
	padding: 10px 14px;
	background: #fff3cd;
	border: 1px solid #ffc107;
	border-radius: 3px;
	margin-bottom: 12px;
	font-size: .9em;
}

/* ── Navigation buttons ─────────────────────────────────── */
.booking-step-nav {
	display: flex;
	gap: 1.5rem;
	margin-top: 18px;
	padding-top: 14px;
	/* border-top: 1px solid #eee; */
}

.booking-btn-prev,
.booking-btn-next,
.booking-btn-submit {
	padding: 10px 1.5rem;
	border: 1px solid #000;
	background-color: #fff;
	border-radius: 40px;
	font-family: inherit;
	font-size: 1em;
	cursor: pointer;
	-webkit-appearance: none;
}

.booking-btn-prev {
	background: #fff;
	color: #333;
}

.booking-btn-prev:hover {
	background: #f0f0f0;
}

.booking-btn-next,
.booking-btn-submit {
	/* background: #111; */
	/* color: #fff; */
	/* margin-left: auto; */
}
button[type="submit"].booking-btn-submit {
    width: auto;
    color: #000;
	height: 48px;
	border-radius: 25px;
}
.booking-btn-next:hover,
button[type="submit"].booking-btn-submit:hover,
.booking-btn-submit:hover {
	color: #fff;
	background: #333;
}

.booking-btn-next:disabled,
.booking-btn-submit:disabled {
	opacity: .4;
	cursor: default;
	color: #000;
}
#booking-cars-field {
	display: flex;
	align-items: center;
	gap: .5rem;
	margin-bottom: 0;
}
input#booking-cars-number {
	max-width: 70px;
}
#booking-cars-info { display: none; }
#booking-cars-field.active + #booking-cars-info { 
	display: block; 
	margin-bottom: 14px;
	font-size: .75em;
	/* font-style: italic; */
}

/* #http://localhost:8848/  */

/* ── Mobile ─────────────────────────────────────────────── */
@media (max-width: 440px) {
	.booking-ticket-price { display: none; }
	.booking-cal-day { width: 30px; height: 30px; line-height: 30px; font-size: .8em; }
}
