/* ===============================================
   BOOKING PAGE STYLES
   Scoped to: body[data-path="bookings"]

   Page structure:
   body[data-path="bookings"]
     └── .page-bookings
         └── .page-content-wrapper
             └── main.container
                 ├── .page-header-wrapper (empty, hide it)
                 └── .page-content
                     └── .booking-page
                         └── .main-content
                             ├── .calendar-container
                             └── .side-panel
   =============================================== */

/* ===============================
   FRAPPE FRAMEWORK OVERRIDES
   Only when data-path="bookings"
   =============================== */

/* Hide empty Frappe header - takes vertical space even when empty */
body[data-path="bookings"] .page-header-wrapper {
	display: none !important;
}

/* Hide Frappe footer on bookings page */
body[data-path="bookings"] .web-footer,
body[data-path="bookings"] footer.web-footer {
	display: none !important;
}

/* Remove Frappe's container max-width constraint */
body[data-path="bookings"] main.container {
	max-width: 100% !important;
	width: 100% !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	margin: 0 !important;
}

/* Remove padding from page content wrapper */
body[data-path="bookings"] .page-content-wrapper {
	padding: 0 !important;
}

/* Remove padding from page content */
body[data-path="bookings"] .page-content {
	padding: 0 !important;
	margin: 0 !important;
}

/* Prevent horizontal scroll caused by Frappe's default styles */
body[data-path="bookings"] {
	overflow-x: hidden;
}

/* ===============================
   BOOKING PAGE - DESKTOP (BASE)
   =============================== */

.booking-page {
	max-width: 100%;
	min-height: 100vh;
	padding: 0;
	margin: 0;
	background: #f5f6fa;
}

/* Custom page header (not Frappe's) */
.booking-page .page-header {
	background: #fff;
	padding: 15px 30px;
	border-bottom: 1px solid #e0e0e0;
	text-align: center;
}

.booking-page .page-header h1 {
	margin: 0;
	font-size: 22px;
	color: #333;
	font-weight: 600;
}

/* Main layout: calendar left, side panel right */
.booking-page .main-content {
	display: flex;
	height: calc(100vh - 70px);
	overflow: hidden;
}

/* Calendar container takes remaining space */
.booking-page .calendar-container {
	flex: 1;
	padding: 20px;
	overflow-y: auto;
	background: #fff;
}

.booking-page .calendar-header {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 20px;
	margin-bottom: 15px;
}

.booking-page .calendar-header h2 {
	margin: 0;
	font-size: 20px;
	font-weight: 600;
	min-width: 180px;
	text-align: center;
}

.booking-page .nav-btn {
	background: #f0f0f0;
	border: none;
	padding: 10px 18px;
	font-size: 16px;
	cursor: pointer;
	border-radius: 6px;
	transition: background 0.2s;
}

.booking-page .nav-btn:hover {
	background: #e0e0e0;
}

/* Calendar weekdays row */
.booking-page .calendar-weekdays {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	text-align: center;
	font-weight: 600;
	font-size: 13px;
	color: #666;
	padding: 10px 0;
	border-bottom: 1px solid #eee;
}

/* Calendar grid - 7 columns, fluid by default */
.booking-page .calendar-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 4px;
	padding: 10px 0;
}

/* ===============================
   DESKTOP LAYOUT (≥1024px)
   Calendar full-width centered, panel appears on date select
   =============================== */
@media (min-width: 1024px) {
	/* Flex row layout */
	body[data-path="bookings"] .booking-page .main-content {
		display: flex;
		flex-direction: row;
		height: calc(100vh - 70px);
		overflow: hidden;
	}

	/* Calendar: takes available space, content centered */
	body[data-path="bookings"] .booking-page .calendar-container {
		flex: 1;
		display: flex;
		flex-direction: column;
		align-items: center;
		padding: 30px 20px;
		overflow-y: auto;
		background: #fff;
		box-sizing: border-box;
	}

	/* Center all calendar elements with max-width */
	body[data-path="bookings"] .booking-page .calendar-header,
	body[data-path="bookings"] .booking-page .calendar-weekdays,
	body[data-path="bookings"] .booking-page .calendar-grid,
	body[data-path="bookings"] .booking-page .calendar-legend {
		width: 100%;
		max-width: 560px;
	}

	/* Calendar grid: 7 equal columns */
	body[data-path="bookings"] .booking-page .calendar-grid {
		grid-template-columns: repeat(7, 1fr);
		gap: 6px;
	}

	/* Calendar cells: nice square proportions */
	body[data-path="bookings"] .booking-page .calendar-day {
		min-height: 60px;
		max-height: 75px;
		aspect-ratio: 1;
	}

	/* Side panel: minimal width when showing placeholder */
	body[data-path="bookings"] .booking-page .side-panel {
		flex-shrink: 0;
		display: flex;
		flex-direction: column;
		overflow-y: auto;
		background: #fff;
		box-sizing: border-box;
		transition: width 0.2s ease, min-width 0.2s ease;
	}

	/* Placeholder state: narrow hint panel */
	body[data-path="bookings"] .booking-page .panel-placeholder {
		width: 200px;
		padding: 20px;
		text-align: center;
		color: #888;
		font-size: 14px;
		border-left: 1px solid #e0e0e0;
	}

	/* Content state: full panel width */
	body[data-path="bookings"] .booking-page .panel-content {
		width: 420px;
		min-width: 420px;
		padding: 20px;
		border-left: 1px solid #e0e0e0;
	}
}

/* ===============================
   MOBILE LAYOUT (<768px)
   Stacked: calendar on top, panel below
   =============================== */
@media (max-width: 767px) {
	body[data-path="bookings"] .booking-page .main-content {
		display: flex;
		flex-direction: column;
		height: auto;
		overflow: visible;
	}

	body[data-path="bookings"] .booking-page .calendar-container {
		width: 100%;
		max-width: 100%;
		padding: 10px;
	}

	body[data-path="bookings"] .booking-page .calendar-header,
	body[data-path="bookings"] .booking-page .calendar-weekdays,
	body[data-path="bookings"] .booking-page .calendar-grid,
	body[data-path="bookings"] .booking-page .calendar-legend {
		max-width: 100%;
	}

	body[data-path="bookings"] .booking-page .side-panel {
		width: 100%;
		max-width: 100%;
		border-left: none;
		border-top: 1px solid #e0e0e0;
	}

	body[data-path="bookings"] .booking-page .panel-placeholder,
	body[data-path="bookings"] .booking-page .panel-content {
		width: 100%;
		min-width: auto;
		border-left: none;
	}
}

.booking-page .calendar-day {
	aspect-ratio: 1.2;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.15s;
	border: 2px solid transparent;
	background: #f8fff8;
	min-height: 70px;
}

.booking-page .calendar-day:hover:not(.empty) {
	transform: scale(1.02);
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.booking-page .calendar-day.empty {
	background: transparent;
	cursor: default;
}

.booking-page .calendar-day.past {
	background: #f5f5f5;
	color: #888;
	cursor: pointer;
}

.booking-page .calendar-day.available {
	background: #e8f5e9;
}

.booking-page .calendar-day.booked {
	background: #ffebee;
}

.booking-page .calendar-day.selected {
	border-color: #1976d2;
	background: #e3f2fd;
}

.booking-page .calendar-day.today {
	border-color: #ff9800;
}

.booking-page .calendar-day .day-num {
	font-size: 16px;
	font-weight: 600;
}

.booking-page .calendar-day .booking-count {
	font-size: 11px;
	color: #666;
	margin-top: 4px;
}

/* Calendar legend */
.booking-page .calendar-legend {
	display: flex;
	justify-content: center;
	gap: 25px;
	padding: 15px;
	font-size: 13px;
	color: #555;
}

.booking-page .calendar-legend .dot {
	display: inline-block;
	width: 12px;
	height: 12px;
	border-radius: 3px;
	margin-right: 6px;
}

.booking-page .dot.green {
	background: #e8f5e9;
	border: 1px solid #4caf50;
}

.booking-page .dot.red {
	background: #ffebee;
	border: 1px solid #e53935;
}

/* Side panel - fixed width on desktop */
.booking-page .side-panel {
	width: 420px;
	background: #fff;
	border-left: 1px solid #e0e0e0;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
}

.booking-page .panel-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	color: #999;
	text-align: center;
	padding: 30px;
}

.booking-page .panel-content {
	padding: 20px;
	flex: 1;
	overflow-y: auto;
}

.booking-page .panel-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	padding-bottom: 15px;
	border-bottom: 1px solid #eee;
}

.booking-page .panel-header h3 {
	margin: 0;
	font-size: 18px;
	color: #333;
}

.booking-page .close-btn {
	background: none;
	border: none;
	font-size: 24px;
	cursor: pointer;
	color: #999;
}

.booking-page .close-btn:hover {
	color: #333;
}

/* Existing bookings section */
.booking-page #existing-bookings {
	margin-bottom: 25px;
}

/* Hide mobile toggle on desktop */
.booking-page #mobile-bookings-toggle {
	display: none;
}

.booking-page .existing-title {
	font-size: 13px;
	font-weight: 600;
	color: #666;
	text-transform: uppercase;
	margin-bottom: 12px;
}

.booking-page .loading,
.booking-page .error {
	padding: 15px;
	text-align: center;
	color: #666;
	font-size: 14px;
}

.booking-page .error {
	color: #e53935;
}

/* Booking card - collapsible */
.booking-page .booking-card {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-left: 4px solid #1976d2;
	border-radius: 0 8px 8px 0;
	margin-bottom: 12px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* Booking summary - always visible, clickable */
.booking-page .booking-summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 15px;
	cursor: pointer;
	background: #fafafa;
	transition: background 0.2s;
}

.booking-page .booking-summary:hover {
	background: #f0f0f0;
}

.booking-page .summary-left {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.booking-page .summary-left .time {
	font-weight: 600;
	color: #333;
	font-size: 14px;
}

.booking-page .summary-left .customer {
	color: #666;
	font-size: 13px;
}

.booking-page .summary-right {
	display: flex;
	align-items: center;
	gap: 10px;
}

.booking-page .summary-right .event-type {
	font-size: 11px;
	background: #e3f2fd;
	color: #1976d2;
	padding: 3px 10px;
	border-radius: 12px;
	font-weight: 500;
}

.booking-page .expand-icon {
	font-size: 12px;
	color: #999;
	transition: transform 0.2s;
}

/* Booking details - expandable */
.booking-page .booking-details {
	padding: 15px;
	border-top: 1px solid #eee;
	background: #fff;
}

.booking-page .detail-section {
	margin-bottom: 12px;
}

.booking-page .detail-section.financial {
	padding-top: 12px;
	border-top: 1px dashed #ddd;
}

.booking-page .detail-row {
	display: flex;
	justify-content: space-between;
	padding: 4px 0;
	font-size: 13px;
}

.booking-page .detail-row .label {
	color: #666;
	font-weight: 500;
}

.booking-page .detail-row .value {
	color: #333;
	text-align: right;
}

.booking-page .detail-row.total {
	font-weight: 600;
	padding-top: 8px;
	border-top: 1px solid #eee;
	margin-top: 4px;
}

.booking-page .detail-row.balance {
	font-weight: 600;
	color: #e53935;
}

.booking-page .detail-row.balance .value {
	color: #e53935;
}

.booking-page .detail-notes {
	margin-top: 12px;
	padding: 10px;
	background: #f9f9f9;
	border-radius: 4px;
	font-size: 12px;
	color: #555;
	border-left: 2px solid #ddd;
}

.booking-page .badge {
	display: inline-block;
	margin-top: 10px;
	font-size: 11px;
	padding: 4px 10px;
	border-radius: 12px;
	font-weight: 500;
}

.booking-page .badge.kitchen {
	background: #e8f5e9;
	color: #2e7d32;
}

/* Booking action buttons - MUST be clickable */
.booking-page .booking-actions {
	display: flex;
	gap: 10px;
	margin-top: 15px;
	padding-top: 15px;
	border-top: 1px solid #eee;
	position: relative;
	z-index: 10;
}

.booking-page .btn-edit,
.booking-page .btn-delete {
	flex: 1;
	padding: 12px 15px;
	border: none;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s;
	pointer-events: auto;
	position: relative;
	z-index: 10;
}

.booking-page .btn-edit {
	background: #1976d2;
	color: white;
}

.booking-page .btn-edit:hover {
	background: #1565c0;
	transform: translateY(-1px);
	box-shadow: 0 2px 8px rgba(25, 118, 210, 0.3);
}

.booking-page .btn-delete {
	background: #fff;
	color: #e53935;
	border: 2px solid #e53935;
}

.booking-page .btn-delete:hover {
	background: #e53935;
	color: white;
	transform: translateY(-1px);
	box-shadow: 0 2px 8px rgba(229, 57, 53, 0.3);
}

.booking-page .no-bookings {
	background: #e8f5e9;
	color: #2e7d32;
	padding: 15px;
	border-radius: 6px;
	text-align: center;
	font-size: 14px;
}

/* Form styles */
.booking-page .form-container h4 {
	font-size: 14px;
	font-weight: 600;
	color: #333;
	margin: 0 0 15px;
	padding-top: 15px;
	border-top: 1px solid #eee;
}

.booking-page .form-group {
	margin-bottom: 12px;
}

.booking-page .form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.booking-page .form-group label {
	display: block;
	font-size: 12px;
	font-weight: 500;
	color: #555;
	margin-bottom: 4px;
}

.booking-page .form-group input,
.booking-page .form-group select,
.booking-page .form-group textarea {
	width: 100%;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 14px;
	box-sizing: border-box;
}

.booking-page .form-group input:focus,
.booking-page .form-group select:focus,
.booking-page .form-group textarea:focus {
	outline: none;
	border-color: #1976d2;
}

.booking-page .checkbox-group label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	cursor: pointer;
}

.booking-page .checkbox-group input[type="checkbox"] {
	width: auto;
}

.booking-page .form-buttons {
	display: flex;
	gap: 10px;
	margin-top: 15px;
}

.booking-page .btn-submit {
	flex: 1;
	padding: 14px;
	background: #2e7d32;
	color: white;
	border: none;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s;
	pointer-events: auto;
}

.booking-page .btn-submit:hover {
	background: #1b5e20;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

.booking-page .btn-submit:active {
	transform: translateY(0);
}

.booking-page .btn-cancel {
	padding: 12px 20px;
	background: #f5f5f5;
	color: #666;
	border: none;
	border-radius: 6px;
	font-size: 14px;
	cursor: pointer;
}

.booking-page .btn-cancel:hover {
	background: #e0e0e0;
	color: #333;
}

/* ===============================
   MODAL STYLES
   Modal is outside .booking-page, so use body scope
   =============================== */
body[data-path="bookings"] #confirm-modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	pointer-events: auto;
}

body[data-path="bookings"] #confirm-modal .modal-box {
	background: white;
	padding: 25px;
	border-radius: 12px;
	width: 100%;
	max-width: 400px;
	margin: 20px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
	pointer-events: auto;
}

body[data-path="bookings"] #confirm-modal .modal-box h3 {
	margin: 0 0 15px;
	font-size: 18px;
	color: #333;
	font-weight: 600;
}

body[data-path="bookings"] #confirm-modal .modal-box p {
	color: #555;
	margin-bottom: 20px;
	font-size: 14px;
	line-height: 1.6;
}

body[data-path="bookings"] #confirm-modal .modal-actions {
	display: flex;
	gap: 12px;
	justify-content: flex-end;
}

body[data-path="bookings"] #confirm-modal .btn-secondary {
	padding: 10px 20px;
	background: #f0f0f0;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 500;
	transition: background 0.2s;
}

body[data-path="bookings"] #confirm-modal .btn-secondary:hover {
	background: #e0e0e0;
}

body[data-path="bookings"] #confirm-modal .btn-danger {
	padding: 10px 20px;
	background: #e53935;
	color: white;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 500;
	transition: background 0.2s;
}

body[data-path="bookings"] #confirm-modal .btn-danger:hover {
	background: #c62828;
}

/* ===============================
   TABLET BREAKPOINT (≤ 900px)
   Stack layout, full-width panels
   =============================== */
@media (max-width: 900px) {
	.booking-page .main-content {
		flex-direction: column;
		height: auto;
	}

	.booking-page .calendar-container {
		min-height: 50vh;
	}

	.booking-page .side-panel {
		width: 100%;
		border-left: none;
		border-top: 1px solid #e0e0e0;
	}

	.booking-page .calendar-day {
		min-height: 50px;
	}

	.booking-page .calendar-day .day-num {
		font-size: 14px;
	}

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

	.booking-page .booking-summary {
		flex-wrap: wrap;
		gap: 8px;
	}

	.booking-page .summary-right {
		width: 100%;
		justify-content: space-between;
	}
}

/* ===============================
   MOBILE BREAKPOINT (≤ 768px)
   Full-width, compact, touch-friendly
   =============================== */
@media (max-width: 768px) {
	/* CRITICAL: Remove Frappe container constraints on mobile */
	body[data-path="bookings"] main.container {
		max-width: 100% !important;
		width: 100% !important;
		padding: 0 !important;
		margin: 0 !important;
	}

	/* Remove ALL wrapper padding that causes gray margins */
	body[data-path="bookings"] .page-bookings,
	body[data-path="bookings"] .page-content-wrapper,
	body[data-path="bookings"] .page-content {
		padding: 0 !important;
		margin: 0 !important;
		max-width: 100% !important;
		width: 100% !important;
	}

	/* Booking page fills viewport width */
	.booking-page {
		padding: 0;
		margin: 0;
		width: 100%;
		max-width: 100%;
		min-height: 100vh;
		box-shadow: none;
	}

	/* Stack calendar and side panel vertically */
	.booking-page .main-content {
		flex-direction: column;
		height: auto;
		min-height: auto;
		overflow: visible;
	}

	/* Calendar: full width, compact padding, NO flex stretch */
	.booking-page .calendar-container {
		width: 100%;
		max-width: 100%;
		padding: 10px;
		border: none;
		min-height: auto;
		overflow: visible;
		box-sizing: border-box;
		flex-shrink: 0; /* Prevent flex parent from compressing this */
		flex-grow: 0; /* Prevent stretching to fill available space */
	}

	/* Compact calendar header */
	.booking-page .calendar-header {
		gap: 8px;
		margin-bottom: 10px;
		padding: 0 5px;
	}

	.booking-page .calendar-header h2 {
		font-size: 16px;
		min-width: 130px;
	}

	.booking-page .nav-btn {
		padding: 8px 12px;
		font-size: 14px;
	}

	/* Compact weekdays */
	.booking-page .calendar-weekdays {
		font-size: 11px;
		padding: 8px 0;
	}

	/* Calendar grid: fixed row height prevents row expansion */
	.booking-page .calendar-grid {
		gap: 2px;
		padding: 5px 0;
		grid-auto-rows: minmax(auto, 48px); /* Cap row height at 48px */
	}

	/* Calendar days: FIXED height, no aspect-ratio (causes vertical growth) */
	.booking-page .calendar-day {
		aspect-ratio: unset; /* Remove aspect-ratio - it causes cells to grow with width */
		min-height: 40px; /* Floor for touch targets */
		max-height: 48px; /* Hard cap prevents vertical expansion */
		height: 100%; /* Fill grid cell but respect max-height */
		border-radius: 6px;
		padding: 4px 0; /* Compact vertical padding */
		box-sizing: border-box; /* Include padding in height calculation */
	}

	.booking-page .calendar-day .day-num {
		font-size: 13px;
		line-height: 1; /* Prevent line-height from adding extra height */
	}

	.booking-page .calendar-day .booking-count {
		font-size: 9px;
		margin-top: 1px;
		line-height: 1; /* Compact line-height */
	}

	/* Compact legend */
	.booking-page .calendar-legend {
		padding: 8px;
		gap: 12px;
		font-size: 11px;
	}

	.booking-page .calendar-legend .dot {
		width: 10px;
		height: 10px;
		margin-right: 4px;
	}

	/* Side panel: full width, below calendar */
	.booking-page .side-panel {
		width: 100%;
		max-width: 100%;
		border-left: none;
		border-top: 1px solid #e0e0e0;
		overflow-y: visible;
		padding: 15px;
		box-sizing: border-box;
		box-shadow: none;
	}

	.booking-page .panel-content {
		padding: 0;
	}

	/* Compact page header */
	.booking-page .page-header {
		padding: 12px 15px;
	}

	.booking-page .page-header h1 {
		font-size: 18px;
	}

	/* Form: single column on mobile */
	.booking-page .form-row {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.booking-page .form-group {
		margin-bottom: 10px;
	}

	/* 16px font prevents iOS zoom on focus */
	.booking-page .form-group input,
	.booking-page .form-group select,
	.booking-page .form-group textarea {
		padding: 12px;
		font-size: 16px;
	}

	/* Show mobile bookings toggle */
	.booking-page #mobile-bookings-toggle {
		display: flex;
		justify-content: space-between;
		align-items: center;
		width: 100%;
		padding: 12px 15px;
		background-color: #f7f7f7;
		border: 1px solid #ddd;
		border-radius: 8px;
		font-size: 14px;
		font-weight: 600;
		color: #333;
		cursor: pointer;
		margin-bottom: 15px;
	}

	.booking-page #mobile-bookings-toggle .toggle-icon {
		font-size: 12px;
		transition: transform 0.2s;
	}

	/* Hide static title on mobile, use toggle button instead */
	.booking-page .existing-title {
		display: none;
	}

	/* Note: #existing-bookings visibility controlled by JS toggle
	   Don't hide by default - let JS handle it after page load */

	/* Compact booking summary */
	.booking-page .booking-summary {
		padding: 10px 12px;
		flex-wrap: wrap;
		gap: 6px;
	}

	.booking-page .summary-left .time {
		font-size: 13px;
	}

	.booking-page .summary-left .customer {
		font-size: 12px;
	}

	.booking-page .summary-right {
		width: 100%;
		justify-content: space-between;
	}

	.booking-page .summary-right .event-type {
		font-size: 10px;
		padding: 2px 8px;
	}

	/* Compact booking details */
	.booking-page .booking-details {
		padding: 12px;
	}

	.booking-page .detail-row {
		font-size: 12px;
	}

	.booking-page .booking-actions {
		margin-top: 12px;
		padding-top: 12px;
	}

	.booking-page .btn-edit,
	.booking-page .btn-delete {
		padding: 10px 12px;
		font-size: 12px;
	}

	/* Panel header */
	.booking-page .panel-header {
		padding: 12px 15px;
		margin: -15px -15px 15px -15px;
		background: #fafafa;
	}

	.booking-page .panel-header h3 {
		font-size: 16px;
	}

	/* Form container */
	.booking-page .form-container {
		padding-top: 15px;
		margin-top: 15px;
		border-top: 1px solid #eee;
	}

	.booking-page .form-container h4 {
		font-size: 13px;
		margin-bottom: 12px;
		padding-top: 12px;
	}

	.booking-page .form-buttons {
		margin-top: 12px;
	}

	.booking-page .btn-submit {
		padding: 14px;
		font-size: 15px;
	}

	.booking-page .btn-cancel {
		padding: 14px 15px;
		font-size: 14px;
	}

	/* Modal: nearly full-width on mobile */
	.booking-page .modal-box {
		margin: 15px;
		padding: 20px;
		max-width: calc(100% - 30px);
	}

	.booking-page .modal-box h3 {
		font-size: 16px;
	}

	.booking-page .modal-box p {
		font-size: 13px;
	}
}

/* ===============================
   SMALL MOBILE BREAKPOINT (≤ 480px)
   Extra compact for narrow screens
   =============================== */
@media (max-width: 480px) {
	/* Even more compact calendar */
	.booking-page .calendar-container {
		padding: 8px;
	}

	.booking-page .calendar-header {
		gap: 6px;
	}

	.booking-page .calendar-header h2 {
		font-size: 14px;
		min-width: 110px;
	}

	.booking-page .nav-btn {
		padding: 6px 10px;
		font-size: 13px;
	}

	/* Grid rows capped at 40px for small screens */
	.booking-page .calendar-grid {
		grid-auto-rows: minmax(auto, 40px);
	}

	/* Smaller calendar days with hard height cap */
	.booking-page .calendar-day {
		min-height: 34px;
		max-height: 40px;
		padding: 2px 0;
	}

	.booking-page .calendar-day .day-num {
		font-size: 12px;
	}

	/* Hide booking count on very small screens */
	.booking-page .calendar-day .booking-count {
		display: none;
	}

	/* Compact side panel */
	.booking-page .side-panel {
		padding: 10px;
	}

	.booking-page .panel-header {
		margin: -10px -10px 12px -10px;
		padding: 10px 12px;
	}

	/* Smaller legend */
	.booking-page .calendar-legend {
		gap: 10px;
		font-size: 10px;
		flex-wrap: wrap;
		justify-content: center;
	}
}
