.ap-booking .ap-court-selected-summary__line {
	display: block;
}
.ap-booking .ap-court-selected-summary__date {
	font-weight: 700;
}
.ap-booking .ap-court-selected-summary__more {
	opacity: 0.9;
}
/* ===== Booking container ===== */
.ap-booking {
	padding-top: 2.5rem;
	padding-bottom: 3rem;
}

.ap-booking .btn:not([type="submit"]) {
	border-width: 1px;
	letter-spacing: 0;
	box-shadow: none;
}
.ap-booking .btn:hover {
	transform: none;
}

/* ===== Thank you page (after booking) ===== */
.ap-booking-thank-you {
	text-align: center;
	padding: 3rem 1.5rem 4rem;
	max-width: 520px;
	margin: 0 auto;
}
.ap-booking-thank-you__title {
	font-size: 2.75rem;
	font-weight: 900;
	color: var(--ap-primary);
	margin: 0 0 0.75rem;
	line-height: 1.3;
}
.ap-booking-thank-you__text {
	font-size: 1.1rem;
	color: var(--ap-body);
	margin: 0 0 2rem;
	line-height: 1.5;
}
.ap-booking-thank-you__btn {
	display: inline-block;
	padding: 0.75rem 2rem;
	font-size: 0.9rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	border-radius: 0.5rem;
	text-decoration: none;
}

/* ===== Grid (Bootstrap row/col kept) ===== */
.ap-booking .row.ap-form {
	gap: 0 1rem;
}
.ap-booking .row.ap-form > [class*="col-"] {
	margin-bottom: 1rem;
}

/* ===== Layout ===== */
.ap-booking .ap-flex {
	display: flex;
	align-items: center;
}
.ap-booking .ap-flex--wrap {
	flex-wrap: wrap;
	gap: 0.5rem;
}

/* ===== Typography & spacing ===== */
.ap-booking .ap-header {
	margin-bottom: 1.75rem;
	padding-bottom: 1rem;
	border-bottom: var(--ap-border);
}

/* ===== Submit spinner ===== */
.ap-booking .ap-btn-spinner {
	display: inline-block;
	width: 1rem;
	height: 1rem;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	margin-right: 0.5rem;
	vertical-align: -0.125em;
	animation: ap-spin 0.6s linear infinite;
}

@keyframes ap-spin {
	to {
		transform: rotate(360deg);
	}
}
.ap-booking .ap-title {
	font-size: 3rem;
	font-weight: 900;
	margin: 0 0 0.35rem;
	letter-spacing: -0.02em;
	color: var(--ap-primary);
	text-transform: uppercase;
}
.ap-booking .ap-intro {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.5;
	color: #6c757d;
}
.ap-booking .ap-heading {
	font-size: 1.2rem;
	font-weight: 600;
	margin: 0 0 0.75rem;
}
.ap-booking .ap-heading--sm {
	font-size: 1.05rem;
	font-weight: 600;
	margin: 0 0 0.5rem;
}
.ap-booking .ap-heading--xs {
	font-size: 1rem;
	font-weight: 600;
	margin: 0 0 0.5rem;
}
.ap-booking .ap-section {
	margin-bottom: 2rem;
}
.ap-booking .ap-back-link {
	margin-bottom: 1rem;
}
.ap-booking .ap-link-back {
	font-size: 0.9375rem;
	color: var(--ap-muted);
	text-decoration: none;
}
.ap-booking .ap-link-back:hover {
	color: var(--ap-primary);
	text-decoration: underline;
}

/* Booking details: schedule summary (same breakdown UI as footer) */
.ap-booking .ap-details-schedule-summary {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	margin-bottom: 1.5rem;
	padding: 1.25rem 1.5rem;
	background: linear-gradient(135deg, #f8fafb 0%, #f0f4f6 100%);
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: var(--ap-radius);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.ap-booking .ap-details-schedule-summary.ap-summary-breakdown-wrap {
	gap: 0.75rem;
	width: 100%;
	max-width: 28rem;
	margin-left: auto;
	margin-right: auto;
}
.ap-booking .ap-details-schedule-summary .ap-summary-breakdown-header {
	width: 100%;
}
.ap-booking .ap-details-summary-title.ap-summary-label {
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #6c757d;
	margin: 0;
	padding: 0;
	border: none;
}
.ap-booking .ap-details-schedule-summary .ap-booking-summary-breakdown {
	width: 100%;
}
.ap-booking .ap-details-summary-list {
	display: grid;
	gap: 0.75rem;
	margin: 0;
}
.ap-booking .ap-details-summary-row {
	display: grid;
	grid-template-columns: 6.5rem 1fr;
	gap: 0.75rem;
	align-items: baseline;
}
.ap-booking .ap-details-summary-term {
	font-size: 0.8125rem;
	font-weight: 600;
	color: #6c757d;
	margin: 0;
}
.ap-booking .ap-details-summary-value {
	font-size: 1rem;
	font-weight: 600;
	color: #1a1a1a;
	margin: 0;
	line-height: 1.4;
}
.ap-booking .ap-details-summary-slots {
	align-items: flex-start;
}
.ap-booking .ap-details-slot-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.ap-booking .ap-details-slot-list li {
	position: relative;
	padding-left: 1rem;
	margin-bottom: 0.35rem;
	font-weight: 500;
}
.ap-booking .ap-details-slot-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.5em;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: var(--ap-primary, #0d6efd);
}
.ap-booking .ap-details-slot-list li:last-child {
	margin-bottom: 0;
}

/* Multi-entry schedule summary (from entries param) */
.ap-booking .ap-details-summary-entries {
	list-style: none;
	margin: 0;
	padding: 0;
}
.ap-booking .ap-details-summary-entry {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.5rem 1rem;
	padding: 0.5rem 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
	font-size: 0.9375rem;
	line-height: 1.4;
}
.ap-booking .ap-details-summary-entry:last-child {
	border-bottom: none;
}
.ap-booking .ap-details-entry-date {
	font-weight: 600;
	color: #1a1a1a;
	min-width: 6rem;
}
.ap-booking .ap-details-entry-court {
	font-weight: 600;
	color: var(--ap-primary);
}
.ap-booking .ap-details-entry-slot {
	color: #495057;
}

/* ===== Booking details form (schedule summary + totals + payment + proof) ===== */
.ap-booking .ap-details-form-panel {
	margin-top: 1.5rem;
}
.ap-booking .ap-details-missing-msg {
	margin-bottom: 1rem;
}
.ap-booking .ap-details-missing-msg .ap-mb-0 {
	margin-bottom: 0;
}
.ap-booking .ap-details-missing-msg .ap-mt-1 {
	margin-top: 0.25rem;
}
.ap-booking .ap-details-missing-list {
	margin: 0.25rem 0 0 1.25rem;
	padding: 0;
}
.ap-booking .ap-details-form-heading {
	font-size: 1rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #495057;
	margin: 1.5rem 0 0.75rem;
}
.ap-booking .ap-details-form-heading:first-child {
	margin-top: 0;
}
.ap-booking .ap-details-total-row {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.5rem 1rem;
	margin: 1rem 0;
	padding: 0.75rem 0;
	border-top: 1px solid #e9ecef;
}
.ap-booking .ap-details-total-label {
	font-weight: 600;
	font-size: 1rem;
}
.ap-booking .ap-details-total-value {
	font-weight: 700;
	font-size: 1.25rem;
	color: #1a1a1a;
}
.ap-booking .ap-details-total-note {
	font-size: 0.875rem;
}
.ap-booking .ap-details-pay-via-heading {
	margin-top: 1.75rem;
}
.ap-booking .ap-details-pay-via {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1rem;
	margin-bottom: 0.5rem;
}

.ap-booking .ap-details-pay-option {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	padding: 1rem;
	background: #f8f9fa;
	border: 1px solid #dee2e6;
	border-radius: 8px;
}
.ap-booking .ap-details-pay-option-name {
	font-weight: 600;
	font-size: 0.875rem;
	color: #212529;
}
.ap-booking .ap-details-pay-title {
	font-weight: bold;
}
.ap-booking .ap-details-pay-desc {
	text-align: center;
	font-size: 0.875rem;
	color: #212529;
}
.ap-booking .ap-details-pay-qr-img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}
.ap-booking .ap-details-pay-via-note {
	font-size: 0.875rem;
	margin: 0 0 1rem;
}
.ap-booking .ap-details-proof-upload {
	margin: 0.75rem 0 1.5rem;
}
.ap-booking .ap-details-proof-upload-label {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	min-height: 140px;
	padding: 1.5rem;
	border: 2px dashed #ced4da;
	border-radius: 8px;
	background: #f8f9fa;
	cursor: pointer;
	transition: border-color 0.2s, background 0.2s;
}
.ap-booking .ap-details-proof-upload-label:hover {
	border-color: var(--ap-primary);
	background: #f0f4ff;
}
.ap-booking .ap-details-proof-upload-icon {
	width: 40px;
	height: 40px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236c757d'%3E%3Cpath d='M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96z'/%3E%3C/svg%3E") no-repeat center;
	background-size: 36px;
}
.ap-booking .ap-details-proof-upload-text {
	font-size: 0.875rem;
	color: #6c757d;
	text-align: center;
	max-width: 280px;
}
.ap-booking .ap-details-proof-upload-input {
	position: absolute;
	width: 0.1px;
	height: 0.1px;
	opacity: 0;
	overflow: hidden;
	z-index: -1;
}
.ap-booking .ap-details-proof-upload-attached {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-wrap: wrap;
	min-height: 52px;
	padding: 0.75rem 1rem;
	border: 2px solid #ced4da;
	border-radius: 8px;
	background: #f8f9fa;
}
.ap-booking .ap-details-proof-upload-attached.d-none {
	display: none !important;
}
.ap-booking .ap-details-proof-upload-filename {
	font-size: 0.9375rem;
	color: #212529;
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.ap-booking .ap-details-proof-upload-remove {
	flex-shrink: 0;
}
.ap-booking .ap-details-rules {
	line-height: 1.6;
	margin: 0.75rem 0 1rem;
	padding: 1rem;
	background: #f8f9fa;
	border-radius: 8px;
	border: 1px solid #e9ecef;
	max-height: 300px;
	overflow: auto;
}
.ap-booking .ap-details-rules h3 {
	font-size: 20px;
	font-weight: bold;
	margin-bottom: 10px;
}
.ap-booking .ap-details-rules h3:not(:first-child) {
	margin-top: 25px;
}
.ap-booking .ap-details-rules ul li {
	margin-bottom: 5px;
}
.ap-booking .ap-details-rules p {
	margin-bottom: 5px;
}
.ap-booking .ap-details-terms {
	margin-top: 1rem;
}
.ap-booking .ap-details-submit {
	min-width: 200px;
	padding: 0.75rem 2rem;
	font-weight: 600;
}

.ap-booking .ap-payment-block {
	margin-bottom: 1rem;
}
.ap-booking .ap-hint,
.ap-booking .ap-meta {
	font-size: 0.875rem;
	margin-top: 0.25rem;
}
.ap-booking .ap-muted {
	font-size: 0.875rem;
	margin: 0;
}
.ap-booking .ap-value {
	font-weight: 600;
}
.ap-booking .ap-list {
	list-style-position: inside;
	margin: 0 0 0 0.5rem;
	padding: 0;
}
.ap-booking .ap-divider {
	margin: 1.25rem 0;
	border: 0;
	border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* ===== Messages (alerts) ===== */
.ap-booking .ap-msg {
	padding: 0.875rem 1.125rem;
	border-radius: var(--ap-radius);
	margin-bottom: 1rem;
	border: var(--ap-border);
	box-shadow: var(--ap-shadow);
}
.ap-booking .ap-msg:last-child {
	margin-bottom: 0;
}
.ap-booking .ap-msg--success {
	background: #d1e7dd;
	color: #0a3622;
	border-color: rgba(25, 135, 84, 0.25);
}
.ap-booking .ap-msg--danger {
	background: #f8d7da;
	color: #58151c;
	border-color: rgba(220, 53, 69, 0.25);
}
.ap-booking .ap-msg--warning {
	background: #fff3cd;
	color: #664d03;
	border-color: rgba(255, 193, 7, 0.4);
}
.ap-booking .ap-msg--info {
	background: #cff4fc;
	color: #055160;
	border-color: rgba(13, 202, 240, 0.3);
}
.ap-booking .ap-msg--muted {
	background: var(--ap-bg-subtle);
	color: #495057;
}

/* ===== Panel (replaces card) ===== */
.ap-booking .ap-panel {
	background: var(--ap-bg-panel);
	border: var(--ap-border);
	border-radius: var(--ap-radius);
	margin-bottom: 1.25rem;
	box-shadow: var(--ap-shadow);
	transition: box-shadow var(--ap-transition);
}
.ap-booking .ap-panel:hover {
	box-shadow: var(--ap-shadow-md);
}
.ap-booking .ap-panel__body {
	padding: 1.5rem;
}
.ap-booking .ap-panel--fill {
	height: 100%;
}

/* ===== Form labels & controls ===== */
.ap-booking .ap-label {
	display: block;
	margin-bottom: 0.25rem;
	font-weight: 500;
}
.ap-booking .ap-label--highlight {
	font-weight: 700;
}
.ap-booking .ap-field-highlight {
	padding: 0.75rem;
	border: var(--ap-border);
	border-left: 4px solid var(--ap-primary, #0d6efd);
	border-radius: var(--ap-radius);
	background: var(--ap-primary);
	color: #fff;
}
.ap-booking .ap-label--block {
	display: block;
}
.ap-booking .ap-checkbox {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	cursor: pointer;
}
.ap-booking .ap-checkbox__input {
	width: 1rem;
	height: 1rem;
}
.ap-booking .ap-form > [class*="col-"] {
	margin-bottom: 1rem;
}
/* ===== Booking footer ===== */
.ap-booking .ap-footer-row {
	margin-top: 2rem;
}
.ap-booking .ap-booking-footer {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	gap: 1.25rem;
	padding: 1.5rem 1.75rem;
	background: linear-gradient(135deg, #f8fafb 0%, #f0f4f6 100%);
	border-radius: var(--ap-radius);
	border: var(--ap-border);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.ap-booking .ap-booking-summary {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	width: 100%;
	min-width: 0;
}
.ap-booking .ap-summary-item {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	min-width: 0;
}
.ap-booking .ap-summary-label {
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #6c757d;
}
.ap-booking .ap-summary-value {
	font-size: 1rem;
	font-weight: 600;
	color: #1a1a1a;
	line-height: 1.35;
}
.ap-booking .ap-summary-breakdown-wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	width: 100%;
	max-width: 28rem;
	min-width: 0;
}
.ap-booking .ap-summary-breakdown-header {
	display: flex;
	align-items: baseline;
	justify-content: center;
	gap: 0.5rem;
	flex-wrap: wrap;
}
.ap-booking .ap-summary-breakdown-header .ap-summary-label {
	margin-bottom: 0;
}
.ap-booking .ap-summary-count {
	font-size: 0.7rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--ap-primary, #0d6efd);
	background: rgba(13, 110, 253, 0.1);
	padding: 0.15rem 0.5rem;
	border-radius: 999px;
}
.ap-booking .ap-booking-summary-breakdown {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	width: 100%;
	font-size: 0.875rem;
	line-height: 1.5;
	color: #1a1a1a;
}
.ap-booking .ap-summary-breakdown-line {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem 0.75rem;
	padding: 0.4rem 0.6rem;
	background: #fff;
	border-radius: 6px;
	border: 1px solid rgba(0, 0, 0, 0.06);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
	font-weight: 500;
	min-width: 0;
}
.ap-booking .ap-summary-breakdown-line .ap-summary-breakdown-date {
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #495057;
	flex-shrink: 0;
}
.ap-booking .ap-summary-breakdown-line .ap-summary-breakdown-court {
	font-weight: 600;
	color: var(--ap-primary, #0d6efd);
	flex-shrink: 0;
}
.ap-booking .ap-summary-breakdown-line .ap-summary-breakdown-court::after {
	content: ' · ';
	font-weight: 400;
	color: #adb5bd;
	margin-left: 0.1rem;
}
.ap-booking .ap-summary-breakdown-line .ap-summary-breakdown-date::after {
	content: ' · ';
	font-weight: 400;
	color: #adb5bd;
	margin-left: 0.1rem;
}
.ap-booking .ap-summary-breakdown-line .ap-summary-breakdown-time {
	color: #495057;
	font-variant-numeric: tabular-nums;
}
.ap-booking .ap-summary-breakdown-empty {
	padding: 0.5rem 0.6rem;
	color: #6c757d;
	font-style: italic;
	font-size: 0.875rem;
}
.ap-booking .ap-booking-footer-actions {
	flex-shrink: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
}
.ap-booking .ap-clear-selections {
	white-space: nowrap;
}
.ap-booking .ap-clear-selections:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}
.ap-booking .ap-summary {
	font-size: 0.9rem;
	line-height: 1.4;
}

/* View options: allow btn-group to wrap on small screens */
.ap-booking .ap-view-options-wrap {
	margin-bottom: 1.25rem;
	text-align: center
}
.ap-booking .btn-group.ap-view-options {
	gap: 0;
}
.ap-booking .btn-group.ap-view-options .btn {
	transition: background-color var(--ap-transition), border-color var(--ap-transition), color var(--ap-transition);
}

/* ===== Calendar view (Google Calendar–style) ===== */
.ap-booking .ap-calendar-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1rem;
	margin-bottom: 1rem;
	padding: 0.5rem 0;
	border-bottom: 1px solid #dadce0;
}
.ap-booking .ap-calendar-select-scope .btn {
	font-size: 12px;
	padding: 0.5rem 1rem;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.ap-booking .ap-calendar-range {
	font-weight: 500;
	font-size: 1.125rem;
	min-width: 12rem;
	text-align: center;
	color: #3c4043;
	letter-spacing: -0.02em;
}
.ap-booking .ap-calendar-grid-wrap {
	position: relative;
	overflow-x: auto;
	min-height: 400px;
	background: #fff;
	border: 1px solid #dadce0;
	border-radius: 8px;
}
.ap-booking .ap-calendar-table tbody tr {
	height: 48px;
}
.ap-booking .ap-calendar-now-line {
	position: absolute;
	left: 0;
	right: 0;
	height: 2px;
	background: #ea9b35;
	z-index: 2;
	pointer-events: none;
}
.ap-booking .ap-calendar-now-line::after {
	content: '';
	position: absolute;
	right: 0;
	top: 50%;
	transform: translate(50%, -50%);
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #ea9b35;
}
.ap-booking .ap-calendar-grid {
	display: grid;
	min-width: min-content;
}

/* Calendar table – flat, minimal grid like Google Calendar */
.ap-booking .ap-calendar-table {
	width: 100%;
	border-collapse: collapse;
	margin: 0;
	font-size: 0.875rem;
	background: #fff;
}
.ap-booking .ap-calendar-table th,
.ap-booking .ap-calendar-table td {
	padding: 0;
	vertical-align: top;
	border: none;
	border-right: 1px solid #e8eaed;
	border-bottom: 1px solid #e8eaed;
}
.ap-booking .ap-calendar-table thead th {
	background: #fff;
	font-weight: 500;
	text-align: center;
	font-size: 0.6875rem;
	letter-spacing: 0.08em;
	color: #5f6368;
	text-transform: uppercase;
	padding: 8px 4px;
	height: 36px;
}
.ap-booking .ap-calendar-table thead th:last-child,
.ap-booking .ap-calendar-table td:last-child {
	border-right: none;
}
.ap-booking .ap-calendar-time-col {
	width: 4.5rem;
	min-width: 4.5rem;
	text-align: right;
	position: sticky;
	left: 0;
	z-index: 1;
	background: #fff;
	color: #5f6368;
	font-size: 0.6875rem;
	font-weight: 400;
	padding: 8px 8px 8px 4px;
}
.ap-booking .ap-calendar-table thead th.ap-calendar-time-col {
	background: #fff;
	border-right: 1px solid #e8eaed;
}
.ap-booking th.ap-calendar-day-col {
	min-width: 6rem;
}
.ap-booking th.ap-calendar-day-col--today {
	background: #fef7e0;
}
.ap-booking th.ap-calendar-day-col--today .ap-calendar-day-num {
	color: #1a73e8;
	font-weight: 500;
}
.ap-booking th.ap-calendar-day-col .ap-calendar-day-name {
	display: block;
	font-size: 0.6875rem;
	letter-spacing: 0.08em;
	color: #5f6368;
	margin-bottom: 2px;
}
.ap-booking th.ap-calendar-day-col .ap-calendar-day-num {
	display: block;
	font-size: 1.625rem;
	font-weight: 400;
	color: #3c4043;
	line-height: 1.2;
}
.ap-booking td.ap-calendar-time-cell {
	background: #fff;
	width: 4.5rem;
	min-width: 4.5rem;
	font-size: 0.6875rem;
	color: #5f6368;
	position: sticky;
	left: 0;
	z-index: 1;
	padding: 4px 8px 0 0;
	text-align: right;
	vertical-align: top;
}
.ap-booking .ap-calendar-cell-wrap {
	padding: 0;
	height: 48px;
	vertical-align: top;
}
.ap-booking .ap-calendar-cell-wrap--today {
	background: #fef7e0;
}
.ap-booking .ap-calendar-cell-wrap--today .ap-calendar-cell:hover:not(:disabled):not(.ap-calendar-cell--past):not(.ap-calendar-cell--unavailable) {
	background: #fef0b8;
}
.ap-booking .ap-calendar-cell.ap-calendar-cell--pending {
	background: #e8f0fe;
	outline: 2px solid #1a73e8;
	outline-offset: -2px;
}
.ap-booking .ap-calendar-cell {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 48px;
	cursor: pointer;
	background: transparent;
	border: none;
	border-radius: 0;
	padding: 0;
	margin: 0;
	font: inherit;
	text-align: left;
	transition: background-color 0.12s ease;
	box-shadow: none;
	outline: none;
}
.ap-booking .ap-calendar-cell .ap-calendar-cell-inner {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	padding: 4px 6px;
	font-size: 0.75rem;
	line-height: 1.3;
}
.ap-booking .ap-calendar-cell:hover:not(:disabled):not(.ap-calendar-cell--past):not(.ap-calendar-cell--unavailable) {
	background: #e8f0fe;
}
.ap-booking .ap-calendar-cell--past,
.ap-booking .ap-calendar-cell--unavailable,
.ap-booking .ap-calendar-cell--outside-schedule {
	cursor: not-allowed;
	background: #f8f9fa;
	opacity: 0.7;
}
.ap-booking .ap-calendar-cell--past:hover,
.ap-booking .ap-calendar-cell--unavailable:hover,
.ap-booking .ap-calendar-cell--outside-schedule:hover {
	background: #f8f9fa;
}
/* Striped pattern to distinguish "outside schedule" from "past" */
.ap-booking .ap-calendar-cell--outside-schedule {
	background-image: repeating-linear-gradient(
		135deg,
		transparent,
		transparent 4px,
		rgba(0,0,0,0.04) 4px,
		rgba(0,0,0,0.04) 8px
	);
}
.ap-booking .ap-calendar-cell--past .ap-calendar-cell-inner.ap-calendar-cell-booked-label {
    background: #d3d3d3;
}

/* Booked schedule on calendar cell */
.ap-booking .ap-calendar-cell--booked {
	background: #e8eaed;
	color: #5f6368;
	font-size: 0.6875rem;
	font-weight: 500;
}
.ap-booking .ap-calendar-cell--booked:hover:not(:disabled) {
	background: #dadce0;
}
.ap-booking .ap-calendar-cell--booked.ap-calendar-cell--full {
	background: #dadce0;
	color: #5f6368;
	cursor: not-allowed;
	opacity: 0.9;
}
.ap-booking .ap-calendar-cell--booked.ap-calendar-cell--full:hover {
	background: #dadce0;
}

.ap-booking .ap-calendar-cell-inner.ap-calendar-cell-booked-label,
.ap-booking .ap-calendar-cell-booked-label {
	display: inline-block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	background-color: #c7f000;
	margin: 5px;
	border-radius: 15px;
	color: #000;
	padding: 5px 15px;
	cursor: pointer;
}
.ap-booking .ap-calendar-cell-booked-label:hover {
	background-color: #b0d900;
}
.ap-booking .ap-calendar-cell-booked-label.selected {
	background-color: #1a73e8;
	color: #fff;
}
.ap-booking .ap-calendar-cell-booked-label.selected:hover {
	background-color: #1557b0;
}

/* Booking details popover (click booked label to view) */
.ap-booking .ap-booking-details-popover {
	position: fixed;
	z-index: 1055;
	min-width: 300px;
	max-width: 420px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.08);
	border: 1px solid rgba(26, 61, 92, 0.12);
	overflow: hidden;
}
.ap-booking .ap-booking-details-popover__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.875rem 1rem;
	background: linear-gradient(135deg, #1a3d5c 0%, #234a6d 100%);
	border-bottom: none;
}
.ap-booking .ap-booking-details-popover__title {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	color: #fff;
	letter-spacing: 0.01em;
}
.ap-booking .ap-booking-details-popover__close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	background: rgba(255, 255, 255, 0.15);
	border: none;
	border-radius: 50%;
	font-size: 1.25rem;
	line-height: 1;
	color: #fff;
	cursor: pointer;
	padding: 0;
	transition: background 0.2s ease, color 0.2s ease;
}
.ap-booking .ap-booking-details-popover__close:hover {
	background: rgba(255, 255, 255, 0.28);
	color: #fff;
}
.ap-booking .ap-booking-details-popover__body {
	padding: 1rem;
	max-height: 60vh;
	overflow-y: auto;
	background: #fafbfc;
}
.ap-booking .ap-booking-details-popover__body::-webkit-scrollbar {
	width: 6px;
}
.ap-booking .ap-booking-details-popover__body::-webkit-scrollbar-track {
	background: #f1f3f5;
	border-radius: 3px;
}
.ap-booking .ap-booking-details-popover__body::-webkit-scrollbar-thumb {
	background: #ced4da;
	border-radius: 3px;
}
.ap-booking .ap-booking-details-popover__entry {
	padding: 1rem;
	margin-bottom: 0.5rem;
	background: #fff;
	border-radius: 8px;
	border: 1px solid #e9ecef;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.ap-booking .ap-booking-details-popover__entry:last-child {
	margin-bottom: 0;
}
.ap-booking .ap-booking-details-popover__row {
	display: flex;
	align-items: baseline;
	gap: 0.5rem;
	margin-bottom: 0.5rem;
	font-size: 0.9rem;
}
.ap-booking .ap-booking-details-popover__row:last-child {
	margin-bottom: 0;
}
.ap-booking .ap-booking-details-popover__label {
	flex: 0 0 auto;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #6c757d;
	min-width: 4.5rem;
}
.ap-booking .ap-booking-details-popover__value {
	flex: 1 1 auto;
	font-weight: 500;
	color: #1a1a1a;
	word-break: break-word;
}
/* Slot header (date · time · court) shown above the entries */
.ap-booking .ap-booking-details-popover__slot-header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem 0.5rem;
	padding: 0.625rem 1rem 0.5rem;
	background: rgba(26, 61, 92, 0.05);
	border-bottom: 1px solid rgba(26, 61, 92, 0.08);
	font-size: 0.82rem;
	font-weight: 600;
	color: #1a3d5c;
}
.ap-booking .ap-booking-details-popover__slot-divider {
	color: #adb5bd;
	font-weight: 400;
}
.ap-booking .ap-booking-details-popover__slot-date,
.ap-booking .ap-booking-details-popover__slot-time,
.ap-booking .ap-booking-details-popover__slot-court {
	white-space: nowrap;
}
/* Booking count badge */
.ap-booking .ap-booking-details-popover__count {
	padding: 0.375rem 1rem 0;
	font-size: 0.75rem;
	font-weight: 600;
	color: #6c757d;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}
/* Reference row with badge + view link */
.ap-booking .ap-booking-details-popover__ref-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.375rem 0.5rem;
	margin-bottom: 0.625rem;
}
/* Status badge */
.ap-booking .ap-booking-details-popover__status {
	display: inline-block;
	padding: 0.18em 0.55em;
	border-radius: 4px;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	background: #e9ecef;
	color: #495057;
}
.ap-booking .ap-booking-details-popover__status.ap-booking-status--approved {
	background: #d1f0e0;
	color: #1a6b3a;
}
.ap-booking .ap-booking-details-popover__status.ap-booking-status--pending {
	background: #fff3cd;
	color: #856404;
}
.ap-booking .ap-booking-details-popover__status.ap-booking-status--denied {
	background: #f8d7da;
	color: #842029;
}
.ap-booking .ap-booking-details-popover__ref-badge {
	display: inline-block;
	padding: 0.2em 0.55em;
	background: #e8f0f8;
	color: #1a3d5c;
	border-radius: 4px;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	font-family: monospace;
}
.ap-booking .ap-booking-details-popover__view-link {
	font-size: 0.78rem;
	font-weight: 600;
	color: #1a6fba;
	text-decoration: none;
	white-space: nowrap;
	transition: color 0.15s ease;
}
.ap-booking .ap-booking-details-popover__view-link:hover {
	color: #0d4e8a;
	text-decoration: underline;
}

/* Calendar year view: 12 month buttons */
.ap-booking .ap-calendar-year-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0.75rem;
	padding: 0.5rem 0;
}
.ap-booking .ap-calendar-year-grid .ap-calendar-month-cell {
	margin: 0;
	padding: 0.85rem 1rem;
	font-weight: 500;
	border-radius: var(--ap-radius);
	transition: background-color var(--ap-transition), border-color var(--ap-transition), transform 0.1s ease;
}
.ap-booking .ap-calendar-year-grid .ap-calendar-month-cell:hover {
	transform: translateY(-2px);
	background: #e7f1ff;
	border-color: rgba(13, 110, 253, 0.3);
}

/* Calendar court selection modal (Google-style quick add) */
.ap-booking #ap-calendar-court-modal .modal-dialog {
	max-width: 420px;
}
.ap-booking #ap-calendar-court-modal .modal-content {
	border: 1px solid #dadce0;
	border-radius: 8px;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}
.ap-booking #ap-calendar-court-modal .modal-header {
	border-bottom: 1px solid #e8eaed;
	padding: 20px 24px 16px;
}
.ap-booking #ap-calendar-court-modal .modal-title {
	font-size: 1.25rem;
	font-weight: 500;
	color: #3c4043;
	letter-spacing: -0.02em;
}
.ap-booking #ap-calendar-court-modal .modal-body {
	padding: 20px 24px 24px;
}
.ap-booking .ap-calendar-modal-slot-info {
	margin: 0 0 1.25rem;
	padding: 12px 14px;
	font-size: 0.9375rem;
	color: #3c4043;
	font-weight: 500;
	background: #f8f9fa;
	border-radius: 6px;
	border: 1px solid #e8eaed;
}
.ap-booking .ap-calendar-modal-courts-label {
	display: block;
	font-size: 0.8125rem;
	font-weight: 500;
	color: #5f6368;
	margin-bottom: 0.75rem;
}
.ap-booking .ap-calendar-modal-courts {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}
.ap-booking .ap-calendar-modal-courts .ap-calendar-modal-court-btn {
	margin: 0;
	min-width: 5.5rem;
	padding: 0.5rem 1rem;
	border-radius: 6px;
	font-weight: 500;
	font-size: 0.9375rem;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.ap-booking .ap-calendar-modal-courts .ap-calendar-modal-court-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}
.ap-booking .ap-calendar-modal-courts .ap-calendar-modal-court-btn:hover:not(:disabled) {
	background-color: #e8f0fe;
	border-color: #1a73e8;
	color: #1967d2;
}
.ap-booking #ap-calendar-court-modal .modal-footer {
	border-top: 1px solid #e8eaed;
	padding: 14px 24px 20px;
	gap: 0.5rem;
}
.ap-booking #ap-calendar-court-modal .modal-footer .btn-primary {
	border-radius: 6px;
	font-weight: 500;
}
.ap-booking #ap-calendar-court-modal .modal-footer .btn-secondary {
	border-radius: 6px;
}

/* Inline popover for calendar cell – improved UI, positioned below cell via JS */
.ap-booking .ap-calendar-inline-popover {
	position: fixed;
	z-index: 1050;
	min-width: 260px;
	max-width: 340px;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 12px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
	padding: 0;
	pointer-events: auto;
	overflow: hidden;
}
.ap-booking .ap-calendar-inline-popover__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	padding: 0.875rem 1rem;
	background: linear-gradient(135deg, var(--ap-primary, #35406f) 0%, #35406f 100%);
	color: #fff;
}
.ap-booking .ap-calendar-inline-popover__title {
	margin: 0;
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: inherit;
}
.ap-booking .ap-calendar-inline-popover__close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	background: rgba(255, 255, 255, 0.2);
	border: none;
	border-radius: 6px;
	font-size: 1.25rem;
	line-height: 1;
	color: #fff;
	cursor: pointer;
	padding: 0;
	transition: background 0.15s ease, color 0.15s ease;
}
.ap-booking .ap-calendar-inline-popover__close:hover {
	background: rgba(255, 255, 255, 0.3);
	color: #fff;
}
.ap-booking .ap-calendar-inline-popover__body {
	padding: 1rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}
.ap-booking .ap-calendar-inline-popover__slot-info {
	margin: 0;
	padding: 0.5rem 0.75rem;
	font-size: 0.8125rem;
	font-weight: 500;
	color: #495057;
	background: #f1f3f5;
	border-radius: 8px;
	border: 1px solid #e9ecef;
}
.ap-booking .ap-calendar-inline-popover__venue-type {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}
.ap-booking .ap-calendar-inline-popover__venue-label,
.ap-booking .ap-calendar-inline-popover__choose-label {
	display: block;
	font-size: 0.6875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #6c757d;
}
.ap-booking .ap-inline-venue-type {
	display: flex;
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid #dee2e6;
}
.ap-booking .ap-inline-venue-type .ap-inline-venue-type-btn {
	flex: 1;
	border-radius: 0;
	border: none;
	font-size: 0.8125rem;
	font-weight: 500;
	padding: 0.4rem 0.75rem;
}
.ap-booking .ap-inline-venue-type .ap-inline-venue-type-btn:first-child {
	border-right: 1px solid #dee2e6;
}
.ap-booking .ap-calendar-inline-popover__courts-wrap {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	min-height: 0;
}
.ap-booking .ap-calendar-inline-popover__courts {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	max-height: 200px;
	overflow-y: auto;
	padding-right: 2px;
}
.ap-booking .ap-calendar-inline-popover__courts::-webkit-scrollbar {
	width: 6px;
}
.ap-booking .ap-calendar-inline-popover__courts::-webkit-scrollbar-track {
	background: #f1f3f5;
	border-radius: 3px;
}
.ap-booking .ap-calendar-inline-popover__courts::-webkit-scrollbar-thumb {
	background: #ced4da;
	border-radius: 3px;
}
.ap-booking .ap-inline-court {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 0.65rem;
	cursor: pointer;
	font-size: 0.875rem;
	font-weight: 500;
	color: #212529;
	background: #f8f9fa;
	border: 1px solid #e9ecef;
	border-radius: 8px;
	transition: background 0.15s ease, border-color 0.15s ease;
}
.ap-booking .ap-inline-court:hover:not(:has(.ap-inline-court-checkbox:disabled)) {
	background: #e9ecef;
	border-color: #dee2e6;
}
.ap-booking .ap-inline-court .ap-inline-court-checkbox {
	margin: 0;
	flex-shrink: 0;
}
.ap-booking .ap-inline-court .ap-inline-court-checkbox:disabled {
	cursor: not-allowed;
}
.ap-booking .ap-inline-court:has(.ap-inline-court-checkbox:disabled) {
	opacity: 0.65;
	background: #f1f3f5;
}
.ap-booking .ap-calendar-inline-popover__footer {
	padding: 0.75rem 1rem;
	border-top: 1px solid #e9ecef;
	background: #f8f9fa;
}
.ap-booking .ap-calendar-inline-popover__apply {
	width: 100%;
	border-radius: 8px;
	font-weight: 600;
	padding: 0.5rem 1rem;
}

/* ===== Court view: 3 groups, CSS courts, booking panel inside empty grid cell ===== */
.ap-booking .ap-court-view-intro {
	margin-bottom: 1rem;
	font-size: 1rem;
	color: #495057;
}
.ap-booking .ap-court-groups {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
	gap: 1rem;
}
.ap-booking .ap-court-group {
	position: relative;
	display: flex;
	align-items: stretch;
	justify-content: center;
	gap: 0.75rem;
    flex: calc(calc(100% / 2) - 1rem);
    max-width: calc(calc(100% / 2) - 1rem);
	flex-wrap: nowrap;
	background-color: #f5f5f5;
	padding: 10px;
	padding-right: 75px;
}
.ap-booking .ap-court-group[data-group="3"] {
	flex-direction: row-reverse;
}
.ap-booking .ap-court-group-empty {
	display: flex;
	align-items: flex-start;
    flex: calc(calc(100% / 2) - 1rem);
    max-width: calc(calc(100% / 2) - 1rem);
}
.ap-booking .ap-court-group-empty .ap-court-booking-panel {
	flex: 1;
	min-width: 0;
}
.ap-booking .ap-court-group-empty .ap-court-booking-body {
	max-height: 100%;
	overflow-y: auto;
}
/* Court drawn with CSS: dark green border, dark blue-grey playing area, light blue net band, black lines */
.ap-booking .ap-view-court .ap-map-area.ap-court-css {
	position: relative;
	max-width: calc(calc(100% / 3) - 0.75rem);
	flex: 0 0 calc(calc(100% / 3) - 0.75rem);
	padding: 0;
	margin: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	align-items: center;
	flex-shrink: 0;
	border-radius: 6px;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.ap-booking .ap-view-court .ap-map-area.ap-court-css:hover {
	transform: scale(1.02);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.ap-booking .ap-view-court .ap-map-area.ap-court-css.is-selected {
	box-shadow: 0 0 0 3px #c7f000;
}
.ap-booking .ap-view-court .ap-map-area.ap-court-css:focus {
	outline: 2px solid #c7f000;
	outline-offset: 2px;
}
.ap-booking .ap-view-court .ap-map-area.ap-court-css.is-selected .ap-court-css__net {
	background: #c7f000;
}
/* Surface: pickleball court – green border, baseline/sideline, center lines, non-volley zone (kitchen), net */
.ap-booking .ap-court-css__surface {
	width: 100%;
	height: 280px;
	background:
		linear-gradient(to bottom, rgba(0,0,0,0.12) 0%, rgba(0,0,0,0.12) 18%, transparent 18%, transparent 41%, transparent 59%, transparent 82%, rgba(0,0,0,0.12) 82%, rgba(0,0,0,0.12) 100%),
		#4a5568;
	border: 10px solid #1e5631;
	border-radius: 2px;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: inset 0 0 0 1px #1a1a1a;
}
/* Center lines: from baseline to net on each side (divide into left/right service courts) */
.ap-booking .ap-court-css__surface::before,
.ap-booking .ap-court-css__surface::after {
	content: "";
	position: absolute;
	width: 1px;
	height: 50%;
	background: #1a1a1a;
	z-index: 0;
}
.ap-booking .ap-court-css__surface::before {
	top: 0;
}
.ap-booking .ap-court-css__surface::after {
	top: 50%;
}
/* Net: light blue band + center line */
.ap-booking .ap-court-css__net {
	position: absolute;
	left: 0;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	height: 35%;
	background: #5b9fd8;
	border: 1px solid #1a1a1a;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #1a1a1a;
	font-size: 14px;
	font-weight: bold;
	line-height: 1;
	z-index: 1;
}
.ap-booking .ap-court-css__net::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 50%;
	margin-top: -0.5px;
	height: 1px;
	background: #1a1a1a;
}
/* Court label inside net (centered) */
.ap-booking .ap-court-css__label {
	margin: 0;
	font-weight: 700;
    padding: 5px;
    background: #fff;
    border-radius: 3px;
	text-align: center;
	position: relative;
	z-index: 2;
}
/* Selected date/slots summary on each court (court view) */
.ap-booking .ap-court-selected-summary {
	display: block;
	margin-top: 0.25rem;
	font-size: 0.65rem;
	line-height: 1.25;
	color: #7d9700;
	font-weight: 600;
    padding: 5px 15px;
	/* max-height: 2.6em;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	word-break: break-word; */
}
.ap-booking .ap-court-selected-summary:empty {
	display: none;
}
/* Lounge strip (vertical) – clickable to book */
.ap-booking .ap-map-area.ap-court-lounge {
	position: absolute;
	top: 15px;
	right: 15px;
	bottom: 0;
	width: 44px;
	height: calc(100% - 30px);
	background: #c9a227;
	color: #1a1a1a;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
	writing-mode: vertical-rl;
	text-orientation: mixed;
	transform: rotate(180deg);
	flex-shrink: 0;
	border: 2px solid transparent;
	cursor: pointer;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.ap-booking .ap-map-area.ap-court-lounge:focus {
	outline: none;
	border-color: #1a1a1a;
	box-shadow: 0 0 0 2px rgba(26, 26, 26, 0.2);
}
/* Selected: dark blue + lime ring to match court view */
.ap-booking .ap-map-area.ap-court-lounge.is-selected {
	background: #1a3d5c;
	color: #fff;
    border: 2px solid #5b9fd8;
    box-shadow: 0 0 0 3px #5b9fd8;
}
/* Booking panel (lives inside .ap-court-group-empty) */
.ap-booking .ap-court-booking-panel {
	border-radius: var(--ap-radius);
	border: var(--ap-border);
	box-shadow: var(--ap-shadow);
}
.ap-booking .ap-court-booking-title {
	font-size: 1.15rem;
	font-weight: 700;
	color: #1a3d5c;
	margin: 0 0 0.25rem 0;
}
.ap-booking .ap-court-availability-status {
	font-size: 0.85rem;
	font-weight: 600;
	color: #1a3d5c;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	margin-bottom: 1rem;
}
.ap-booking .ap-court-other-times {
	margin-bottom: 1rem;
}
.ap-booking .ap-court-other-times .ap-heading--xs {
	margin-bottom: 0.5rem;
	font-size: 0.9rem;
}
.ap-booking .ap-court-slot-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}
.ap-booking .ap-court-booking-placeholder {
	margin: 0;
	padding: 1.5rem;
	text-align: center;
}

/* ===== Court map (legacy / image overlay) ===== */
.ap-booking .ap-map {
	min-height: 360px;
}
.ap-booking .ap-map-with-overlays {
	position: relative;
	min-height: 280px;
	overflow: hidden;
	border-radius: var(--ap-radius);
	border: var(--ap-border);
	background: var(--ap-bg-subtle);
	box-shadow: var(--ap-shadow);
}
.ap-booking .ap-map__img {
	display: block;
	max-width: 100%;
	height: auto;
}
.ap-booking .ap-map-area {
	position: absolute;
	cursor: pointer;
	transition: background-color 0.2s ease, box-shadow 0.2s ease;
	border: 0;
	padding: 0;
	margin: 0;
	background: transparent;
	border-radius: 4px;
}
.ap-booking .ap-view-court .ap-map-area.ap-court-css.ap-map-area:hover {
	background-color: rgba(199, 240, 0, 0.2);
	box-shadow: inset 0 0 0 2px rgba(199, 240, 0, 0.75);
}
.ap-booking .ap-view-court .ap-map-area.ap-court-css.ap-map-area.is-selected {
	background-color: rgba(199, 240, 0, 0.35);
}
.ap-booking .ap-view-court .ap-map-area.ap-court-css.ap-map-area:focus {
	outline: 2px solid var(--ap-primary);
	outline-offset: 2px;
}
.ap-booking .ap-selected-line {
	font-size: 0.875rem;
	margin-top: 0.75rem;
}
.ap-booking .ap-selected-court--name {
	font-weight: 600;
}

/* Bootstrap modal: hint on the left in footer */
.ap-booking .ap-modal-footer-hint {
	margin-right: auto;
}

/* ===== List view: court bar, left calendar + right schedule list ===== */
.ap-booking .ap-list-court-bar  {
	display: block;
	text-align: center;
}
.ap-booking .ap-list-court-tabs .ap-list-court-btn {
	min-width: 0;
}
.ap-booking .ap-list-view-row {
	align-items: flex-start;
}
.ap-booking .ap-list-calendar-wrap {
	max-width: 280px;
	margin: 0 auto 50px;
}
.ap-booking .ap-list-calendar-inner {
	text-align: center;
}
.ap-booking .ap-list-calendar-title {
	font-weight: 600;
	font-size: 1rem;
	margin-bottom: 0.75rem;
	color: var(--ap-fg, #212529);
}
.ap-booking .ap-list-calendar-weekdays {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 2px;
	margin-bottom: 4px;
	font-size: 0.7rem;
	font-weight: 600;
	color: #6c757d;
}
.ap-booking .ap-list-calendar-days {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 2px;
}
.ap-booking .ap-list-calendar-day {
	aspect-ratio: 1;
	min-width: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.85rem;
	border: 1px solid transparent;
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
	transition: background-color 0.15s, border-color 0.15s;
}
.ap-booking .ap-list-calendar-day:hover:not(.ap-list-calendar-day--empty) {
	background: rgba(0, 0, 0, 0.06);
}
.ap-booking .ap-list-calendar-day--selected {
	background: var(--ap-primary);
	color: #fff;
	border-color: var(--ap-primary);
}
.ap-booking .ap-list-calendar-day--today {
	border-color: var(--ap-primary);
}
.ap-booking .ap-list-calendar-day--empty {
	visibility: hidden;
	pointer-events: none;
}
.ap-booking .ap-list-calendar-day--past {
	opacity: 0.45;
}
.ap-booking .ap-list-calendar-day:disabled {
	opacity: 0.45;
	cursor: not-allowed;
	pointer-events: none;
}
/* Past days that are still clickable (admin navigation) should be interactive. */
.ap-booking .ap-list-calendar-day--past:not(:disabled) {
	cursor: pointer;
	pointer-events: auto;
}
.ap-booking .ap-list-schedule-header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 1rem;
}
.ap-booking .ap-list-month-nav {
	display: flex;
	align-items: center;
	gap: 0.25rem;
}
.ap-booking .ap-list-month-label {
	font-weight: 600;
	min-width: 140px;
	text-align: center;
}
.ap-booking .ap-list-schedule-dropdown-wrap {
	margin-left: auto;
}
.ap-booking .ap-list-schedule {
	/* min-height: 200px; */
}
.ap-booking .ap-list-schedule-empty {
	padding: 1.5rem;
	text-align: center;
}
.ap-booking .ap-list-day-card {
	display: none !important;
	background: #f8f9fa;
	border-radius: 8px;
	border: 1px solid rgba(0, 0, 0, 0.08);
	padding: 0.75rem 1rem;
	margin-bottom: 0.75rem;
}
.ap-booking .ap-list-day-card__head {
	font-weight: 600;
	font-size: 0.9rem;
	margin-bottom: 0.5rem;
	color: #495057;
}
.ap-booking .ap-list-day-card__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.75rem;
	padding: 0.35rem 0;
	font-size: 0.9rem;
}
.ap-booking .ap-list-day-card__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	flex-shrink: 0;
}
.ap-booking .ap-list-day-card__court {
	font-weight: 500;
}
.ap-booking .ap-list-day-card__name {
	color: #495057;
}
.ap-booking .ap-list-day-card__time {
	color: #6c757d;
	font-size: 0.85rem;
}
.ap-booking .ap-list-day-card__row--clickable {
	cursor: pointer;
	border-radius: 0.25rem;
	padding-left: 0.4rem;
	padding-right: 0.4rem;
	transition: background-color 0.15s ease;
}
.ap-booking .ap-list-day-card__row--clickable:hover,
.ap-booking .ap-list-day-card__row--clickable:focus {
	background-color: rgba(13, 110, 253, 0.08);
}
.ap-booking .ap-list-available-slot--past {
	opacity: 0.7;
}
.ap-booking .ap-list-available-slot--past.ap-list-available-slot--has-details {
	cursor: pointer;
	opacity: 1;
}

.ap-booking .ap-list-available-wrap {
	margin-bottom: 1.25rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.ap-booking .ap-list-available-head {
	font-weight: 600;
	font-size: 0.9rem;
	margin-bottom: 0.5rem;
}
.ap-booking .ap-list-available-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}
.ap-booking .ap-list-available-slot {
    flex: calc(calc(100% / 4) - 0.4rem);
    max-width: calc(calc(100% / 4) - 0.4rem);
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #e3e3e3;
	letter-spacing: 0;
}

/* ===== Slot grid (list view cards – legacy) ===== */
.ap-booking .ap-slot-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	--items-per-row: 3;
}
.ap-booking .ap-slot-grid > button {
	flex: calc(calc(100% / var(--items-per-row)) - 0.5rem);
	max-width: calc(calc(100% / var(--items-per-row)) - 0.5rem);
	border-radius: 5px;
}
.ap-booking .ap-timeslot--full {
	width: 100%;
}
.ap-booking .ap-view-layout .ap-panel__body .ap-heading--sm,
.ap-booking .ap-view-table .ap-panel__body .ap-heading--sm,
.ap-booking .ap-view-calendar .ap-panel__body .ap-heading--sm,
.ap-booking .ap-view-list .ap-panel__body .ap-heading--xs {
	margin-top: 0;
}
.ap-booking .ap-view-list .ap-panel {
	transition: box-shadow var(--ap-transition), border-color var(--ap-transition);
}
.ap-booking .ap-view-list .ap-panel:hover {
	border-color: rgba(0, 0, 0, 0.12);
}

/* ===== Table (table view) ===== */
.ap-booking .ap-table-wrap {
	overflow-x: auto;
	border-radius: var(--ap-radius);
	border: var(--ap-border);
	box-shadow: var(--ap-shadow);
}
.ap-booking .ap-table {
	width: 100%;
	border-collapse: collapse;
	margin: 0;
	font-size: 0.9rem;
}
.ap-booking .ap-table th,
.ap-booking .ap-table td {
	padding: 0.6rem 0.75rem;
	border: 1px solid rgba(0, 0, 0, 0.07);
}
.ap-booking .ap-table thead th {
	text-align: left;
	background: linear-gradient(180deg, #f1f3f5 0%, #e9ecef 100%);
	font-weight: 600;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #495057;
	min-width: 150px;
}
.ap-booking .ap-table tbody tr:nth-child(even) {
	background: rgba(0, 0, 0, 0.02);
}
.ap-booking .ap-table tbody tr:hover {
	background: rgba(13, 110, 253, 0.04);
}
.ap-booking .ap-table__th--center,
.ap-booking .ap-table__cell--center {
	text-align: center;
}
.ap-booking .ap-time-col {
	white-space: nowrap;
	width: 1%;
	font-weight: 500;
	color: #495057;
}
/* Table view: whole cell is clickable (td.ap-timeslot--cell) */
.ap-booking .ap-table .ap-timeslot--cell {
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
	user-select: none;
}
.ap-booking .ap-table .ap-timeslot--cell.is-selected {
	background: var(--ap-primary);
	color: #fff;
}
.ap-booking .ap-table .ap-timeslot--cell.disabled {
	cursor: not-allowed;
	background: #eceff3;
	color: #7b8491;
	opacity: 1;
}
.ap-booking .ap-table .ap-timeslot--cell.ap-timeslot--blocked {
	background: #eceff3;
	color: #7b8491;
}
.ap-booking .ap-table .ap-timeslot--cell.ap-timeslot--booked:not(.is-selected) {
	background: #ffe7ea;
	color: #7a1622;
}
.ap-booking .ap-table .ap-timeslot--cell.ap-timeslot--booked.is-selected {
	background: var(--ap-primary);
	color: #fff;
}
.ap-booking .ap-timeslot-booked-indicator {
	display: block;
	margin-top: 0.15rem;
	font-size: 0.7rem;
	font-weight: 600;
	line-height: 1.2;
	opacity: 0.95;
}
.ap-booking .ap-table-mobile-slot.ap-timeslot--booked:not(.is-selected):not(.btn-primary) {
	background: #ffe7ea;
	border-color: #f3b0ba;
	color: #7a1622;
}
.ap-booking .ap-table-mobile-slot.disabled,
.ap-booking .ap-table-mobile-slot.ap-timeslot--blocked {
	background: #eceff3;
	border-color: #d5dbe3;
	color: #7b8491;
	opacity: 1;
}
/* .ap-booking .ap-table .ap-timeslot--cell:focus {
	outline: 2px solid #0d6efd;
	outline-offset: -2px;
} */
/* Legacy: table view with inner button (if any) */
.ap-booking .ap-table .ap-timeslot {
	font-size: 12px;
	font-weight: 600;
	background-color: #fff;
}

.ap-booking .ap-qr {
	height: 140px;
	font-weight: 600;
	color: rgba(0, 0, 0, 0.55);
}

/* ===== Inline jQuery UI datepicker ===== */
.ap-booking #ap_datepicker .ui-datepicker {
	width: 100%;
	padding: 0.85rem;
	border: var(--ap-border);
	border-radius: var(--ap-radius);
	background: var(--ap-bg-panel);
	box-shadow: var(--ap-shadow);
}
.ap-booking #ap_datepicker .ui-datepicker-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	margin-bottom: 0.6rem;
}
.ap-booking #ap_datepicker .ui-datepicker-title {
	font-weight: 600;
	font-size: 0.95rem;
}
.ap-booking #ap_datepicker .ui-datepicker-prev,
.ap-booking #ap_datepicker .ui-datepicker-next {
	border: var(--ap-border);
	border-radius: var(--ap-radius-sm);
	padding: 0.3rem 0.5rem;
	text-decoration: none;
	color: inherit;
	cursor: pointer;
	transition: background-color var(--ap-transition);
}
.ap-booking #ap_datepicker .ui-datepicker-prev:hover,
.ap-booking #ap_datepicker .ui-datepicker-next:hover {
	background: var(--ap-bg-subtle);
}
.ap-booking #ap_datepicker table {
	width: 100%;
	border-collapse: collapse;
}
.ap-booking #ap_datepicker th {
	text-align: center;
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #6c757d;
	padding: 0.3rem 0;
}
.ap-booking #ap_datepicker td {
	text-align: center;
	padding: 0.15rem;
}
.ap-booking #ap_datepicker td a,
.ap-booking #ap_datepicker td span {
	display: block;
	padding: 0.4rem 0;
	border-radius: var(--ap-radius-sm);
	text-decoration: none;
	color: inherit;
	transition: background-color var(--ap-transition);
}
.ap-booking #ap_datepicker td a:hover {
	background: #e9ecef;
}
.ap-booking #ap_datepicker .ui-state-active {
	background: #cfe2ff;
	font-weight: 600;
}
.ap-booking #ap_datepicker .ui-state-disabled span {
	opacity: 0.45;
}

@media only screen and (max-width: 991px) {
	.ap-booking .ap-court-group-empty {
		order: 999;
		flex: 1 1 100%;
		max-width: 100%;
	}
	.ap-booking .ap-court-group:nth-child(1) {
		order: 2;
	}
	.ap-booking .ap-court-group:nth-child(3) {
		order: 1;
	}
	.ap-booking .ap-court-group:nth-child(4) {
		order: 3;
	}

	.ap-booking .ap-list-available-slot {
		flex: calc(calc(100% / 2) - 0.4rem);
		max-width: calc(calc(100% / 2) - 0.4rem);
	}

	.ap-booking .ap-court-group {
		flex-direction: column;
		padding: 0;
		padding-bottom: 70px;
	}
	.ap-booking .ap-court-group[data-group="3"] {
		flex-direction: column-reverse;
	}
	.ap-booking .ap-view-court .ap-map-area.ap-court-css {
		max-width: 100%;
		flex: 0 0 100%;
	}
	.ap-booking .ap-map-area.ap-court-lounge {
		width: calc(100% - 30px);
		height: auto;
		padding: 5px;
		top: auto;
		left: 15px;
		right: 15px;
		bottom: 15px;
		writing-mode: unset;
		transform: none;
	}
	.ap-booking .ap-court-css__surface::before, .ap-booking .ap-court-css__surface::after {
		width: 100%;
		height: 1px;
	}
	.ap-booking .ap-court-css__surface {
		height: 150px;
	}
	.ap-booking .ap-court-css__net {
		width: 35%;
        height: 100%;
        transform: translateX(-50%);
        top: 0;
        left: 50%;
	}
	.ap-booking .ap-court-css__net::before {
		height: 100%;
        width: 1px;
        top: 0;
        left: 50%;
        margin: 0;
	}
}

@media only screen and (max-width: 767px) {

	.ap-booking .btn-group.ap-view-options .btn {
		font-size: 0.75rem;
		padding: 0.5rem 1rem;
	}

	.ap-booking .ap-court-css__surface {
		height: 100px;
	}

	.ap-booking .ap-slot-grid {
		--items-per-row: 2;
	}
}

@media only screen and (max-width: 575px) {
	.ap-booking .ap-booking-footer .btn {
		width: 100%;
		min-width: 0;
	}
	.ap-booking .ap-calendar-toolbar #ap-calendar-today {
		width: 100%;
	}
	.ap-booking .ap-calendar-toolbar .btn-group {
		width: 100%;
	}
	.ap-booking .ap-details-pay-via {
		grid-template-columns: repeat(2, 1fr);
	}
}