/* Common styles for all booking modules */
.booking-module {
    margin: 20px 0;
    padding: 20px;
    background: #fff;
    border-radius: var(--bk-ui-field-radius);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* List/grid/calendar archives: no extra outer box */
.booking-module[data-view="grid"],
.booking-module[data-view="list"],
.booking-module[data-view="calendar"] {
	margin: 0;
	padding: 0;
	background: transparent;
	border-radius: 0;
	box-shadow: none;
}

.booking-module[data-view="grid"] > .booking-content,
.booking-module[data-view="list"] > .booking-content,
.booking-module[data-view="calendar"] > .booking-content {
	min-width: 0;
	width: 100%;
}

.booking-loading {
    text-align: center;
    padding: 20px;
}

.booking-loading .spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--bk-btn-accent, #2196f3);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Calendar View */
.booking-calendar-view {
    max-width: 800px;
    margin: 0 auto;
    font-family: var(--bk-body-font-family, inherit);
    font-size: var(--bk-body-font-size, inherit);
    color: var(--bk-body-color, inherit);
}

.booking-calendar-view .current-month {
    font-family: var(--bk-heading-font-family, inherit);
    font-size: var(--bk-heading-font-size, inherit);
    color: var(--bk-heading-color, inherit);
}

:where(.booking-steps-wrapper, .booking-module, .booking-service-embed, [class^="bs-"], [class*=" bs-"]) .calendar-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

:where(.booking-steps-wrapper, .booking-module, .booking-service-embed, [class^="bs-"], [class*=" bs-"]) .calendar-grid {
	background: var(--bk-cal-bg, #fff);
}

.bs-public-event-calendar .calendar-grid:not(.bs-pec-grid) {
	border: 1px solid var(--bk-cal-border, #e7e5e0);
	border-radius: var(--bk-ui-field-radius);
}

:where(.booking-steps-wrapper, .booking-module, .booking-service-embed, [class^="bs-"], [class*=" bs-"]) .calendar-header {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    background: var(--bk-cal-schedule-bg, rgba(var(--bk-cal-item-rgb, 0, 122, 255), 0.08));
    border-bottom: 1px solid var(--bk-cal-border, #e7e5e0);
}

:where(.booking-steps-wrapper, .booking-module, .booking-service-embed, [class^="bs-"], [class*=" bs-"]) .calendar-day-header {
    padding: 10px;
    text-align: center;
    font-weight: bold;
}

:where(.booking-steps-wrapper, .booking-module, .booking-service-embed, [class^="bs-"], [class*=" bs-"]) .calendar-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

/* List View */
.booking-list-view {
    max-width: 800px;
    margin: 0 auto;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

:where(.booking-steps-wrapper, .booking-module, .booking-service-embed, [class^="bs-"], [class*=" bs-"]) .list-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

:where(.booking-steps-wrapper, .booking-module, .booking-service-embed, [class^="bs-"], [class*=" bs-"]) .list-filters input {
    flex: 1;
}

/* Grid view shell — detailed UI in assets/css/frontend/archive/public-event-calendar.css */
.booking-grid-view {
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	min-width: 0;
	width: 100%;
	box-sizing: border-box;
}

/* Responsive Design */
@media (max-width: 768px) {
	:where(.booking-steps-wrapper, .booking-module, .booking-service-embed, [class^="bs-"], [class*=" bs-"]) .list-filters {
		flex-direction: column;
	}
} 