/* =============================================================================
   Lodge Calendars — Frontend Styles
   Light/dark theming via CSS custom properties on .lc-calendar-wrap
   ============================================================================= */

/* -----------------------------------------------------------------------------
   Light theme (default)
   ----------------------------------------------------------------------------- */
.lc-calendar-wrap[data-active-theme="light"],
.lc-modal-overlay[data-active-theme="light"] {
	--lc-bg:              #ffffff;
	--lc-bg-alt:          #f9fafb;
	--lc-border:          #e5e7eb;
	--lc-text-primary:    #111827;
	--lc-text-secondary:  #4b5563;
	--lc-text-muted:      #6b7280;
	--lc-accent:          #4f46e5;
	--lc-accent-hover:    #4338ca;
	--lc-today-bg:        #eff6ff;
	--lc-header-bg:       #ffffff;
	--lc-header-text:     #6b7280;
	--lc-button-bg:       #f3f4f6;
	--lc-button-text:     #374151;
	--lc-button-hover-bg: #e5e7eb;
	--lc-filter-bg:       #ffffff;
	--lc-shadow:          0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
	--lc-modal-overlay:   rgba(0, 0, 0, 0.65);
}

/* -----------------------------------------------------------------------------
   Dark theme
   ----------------------------------------------------------------------------- */
.lc-calendar-wrap[data-active-theme="dark"],
.lc-modal-overlay[data-active-theme="dark"] {
	--lc-bg:              #131f3a;
	--lc-bg-alt:          #0f1b35;
	--lc-border:          #1e3a8a;
	--lc-text-primary:    #f9fafb;
	--lc-text-secondary:  #d1d5db;
	--lc-text-muted:      #9ca3af;
	--lc-accent:          #d4a017;
	--lc-accent-hover:    #b48512;
	--lc-today-bg:        #0a0f1e;
	--lc-header-bg:       #131f3a;
	--lc-header-text:     #9ca3af;
	--lc-button-bg:       #0f1b35;
	--lc-button-text:     #f9fafb;
	--lc-button-hover-bg: #1e3a8a;
	--lc-filter-bg:       #131f3a;
	--lc-shadow:          0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
	--lc-modal-overlay:   rgba(10, 15, 30, 0.85);
}

@media ( min-width: 1024px ) {
	.lc-calendar-wrap {
		width: 95vw !important;
		max-width: 1400px !important;
		left: 50% !important;
		transform: translateX(-50%) !important;
		margin: 0 !important;
	}
}

.lc-calendar-wrap {
	position: relative;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: var(--lc-text-primary);
	background: var(--lc-bg-alt);
	padding: 24px;
	border-radius: 12px;
	box-sizing: border-box;
}

.lc-calendar-wrap * {
	box-sizing: border-box;
}

/* =============================================================================
   Header
   ============================================================================= */
.lc-header-wrapper {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
}

.lc-calendar-title {
	font-size: 28px;
	font-weight: 800;
	margin: 0;
	color: var(--lc-text-primary);
	letter-spacing: -0.02em;
}

.lc-nav-controls {
	display: flex;
	align-items: center;
	gap: 12px;
}

.lc-nav-controls button {
	background: var(--lc-button-bg);
	color: var(--lc-button-text);
	border: 1px solid var(--lc-border);
	border-radius: 8px;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 16px;
	transition: all 0.2s;
}

.lc-nav-controls button:hover {
	background: var(--lc-button-hover-bg);
}

.lc-nav-today-btn {
	width: auto !important;
	padding: 0 14px !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	letter-spacing: 0.03em;
	background: var(--lc-accent) !important;
	color: #ffffff !important;
	border-color: var(--lc-accent) !important;
	border-radius: 20px !important;
	transition: opacity 0.2s, transform 0.15s !important;
}

.lc-nav-today-btn:hover {
	opacity: 0.88;
	transform: translateY(-1px);
	background: var(--lc-accent) !important;
}

.lc-nav-title {
	font-size: 16px;
	font-weight: 600;
	min-width: 140px;
	text-align: center;
}

/* =============================================================================
   Filter Bar
   ============================================================================= */
.lc-filter-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 20px;
	padding: 20px;
	background: var(--lc-bg);
	border: 1px solid var(--lc-border);
	border-radius: 12px 12px 0 0;
	border-bottom: none;
}

.lc-filter-group {
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1 1 180px;
	min-width: 0; /* allows shrinking if needed, but contents will push it */
}

.lc-filter-label {
	font-size: 12px;
	font-weight: 600;
	color: var(--lc-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	display: flex;
	align-items: center;
	gap: 5px;
}

/* ── Tooltip icon (the ? badge) ───────────────────────────────────────────── */
.lc-tooltip-wrap {
	position: relative;
	display: inline-flex;
	align-items: center;
}

.lc-tooltip-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--lc-text-muted);
	color: var(--lc-bg);
	font-size: 9px;
	font-weight: 700;
	font-style: normal;
	line-height: 1;
	cursor: help;
	flex-shrink: 0;
	transition: background 0.2s;
	/* Remove uppercase + letter-spacing inherited from label */
	text-transform: none;
	letter-spacing: 0;
}

.lc-tooltip-icon:hover,
.lc-tooltip-icon:focus {
	background: var(--lc-accent);
	outline: none;
}

/* Tooltip bubble — hidden by default, shown on hover or keyboard focus */
.lc-tooltip-bubble {
	display: none;
	position: absolute;
	bottom: calc(100% + 8px);
	left: 50%;
	transform: translateX(-50%);
	width: 240px;
	padding: 10px 12px;
	background: var(--lc-text-primary);
	color: var(--lc-bg);
	font-size: 12px;
	font-weight: 400;
	line-height: 1.5;
	border-radius: 8px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
	pointer-events: none;
	z-index: 2000;
	/* Reset label styles */
	text-transform: none;
	letter-spacing: 0;
}

/* Small arrow pointing downward from bubble */
.lc-tooltip-bubble::after {
	content: '';
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	border: 6px solid transparent;
	border-top-color: var(--lc-text-primary);
}

/* Show on hover or keyboard focus of the icon */
.lc-tooltip-wrap:hover .lc-tooltip-bubble,
.lc-tooltip-icon:focus + .lc-tooltip-bubble {
	display: block;
}

/* Prevent bubble from clipping off the left edge for the first filter */
.lc-filter-group:first-child .lc-tooltip-bubble {
	left: 0;
	transform: none;
}
.lc-filter-group:first-child .lc-tooltip-bubble::after {
	left: 20px;
	transform: none;
}

.lc-filter-bar select {
	background: var(--lc-bg);
	color: var(--lc-text-primary);
	border: 1px solid var(--lc-border);
	border-radius: 6px;
	padding: 10px 30px 10px 12px;
	font-size: 14px;
	cursor: pointer;
	appearance: none;
	background-image: url('data:image/svg+xml;utf8,<svg fill="none" stroke="%239ca3af" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"></path></svg>');
	background-repeat: no-repeat;
	background-position: right 10px center;
	background-size: 14px;
	width: 100%;
}

.lc-filter-bar select:focus {
	outline: 2px solid var(--lc-accent);
	outline-offset: 1px;
}

.lc-filter-bar select:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* Multi-select custom component */
.lc-multi-select {
	position: relative;
	width: 100%;
}

.lc-multi-select-trigger {
	background: var(--lc-bg);
	color: var(--lc-text-primary);
	border: 1px solid var(--lc-border);
	border-radius: 6px;
	padding: 10px 30px 10px 12px;
	font-size: 14px;
	cursor: pointer;
	width: 100%;
	text-align: left;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	background-image: url('data:image/svg+xml;utf8,<svg fill="none" stroke="%239ca3af" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"></path></svg>');
	background-repeat: no-repeat;
	background-position: right 10px center;
	background-size: 14px;
	transition: border-color 0.2s;
}

.lc-multi-select-trigger:hover,
.lc-multi-select-open .lc-multi-select-trigger {
	border-color: var(--lc-accent);
}

.lc-multi-select-dropdown {
	display: none;
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	right: 0;
	background: var(--lc-bg);
	border: 1px solid var(--lc-border);
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(0,0,0,0.15);
	z-index: 1000;
	max-height: 220px;
	overflow-y: auto;
	padding: 6px;
}

.lc-multi-select-open .lc-multi-select-dropdown {
	display: block;
}

.lc-multi-select-search {
	width: 100%;
	padding: 8px 10px;
	margin-bottom: 6px;
	border: 1px solid var(--lc-border);
	border-radius: 5px;
	background: var(--lc-bg);
	color: var(--lc-text-primary);
	font-size: 13px;
	outline: none;
}

.lc-multi-select-search:focus {
	border-color: var(--lc-accent);
}

.lc-multi-select-option {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 7px 10px;
	border-radius: 5px;
	cursor: pointer;
	font-size: 13px;
	color: var(--lc-text-primary);
	transition: background 0.15s;
}

.lc-multi-select-option:hover {
	background: var(--lc-bg-alt);
}

.lc-multi-select-option input[type="checkbox"] {
	accent-color: var(--lc-accent);
	width: 14px;
	height: 14px;
	flex-shrink: 0;
	cursor: pointer;
}

/* Near Me Toggle */
.lc-toggle-group {
	display: flex;
	align-items: center;
	gap: 10px;
	background: var(--lc-bg-alt);
	padding: 4px 6px 4px 14px;
	border-radius: 24px;
	border: 1px solid var(--lc-border);
	transition: opacity 0.3s ease, filter 0.3s ease;
	flex-shrink: 0;
	height: 42px;
	box-sizing: border-box;
}

.lc-toggle-group select.lc-radius-select {
	height: 32px;
	padding: 0 24px 0 10px;
	font-size: 13px;
	font-weight: 500;
	border: 1px solid var(--lc-border);
	background-color: var(--lc-bg);
	border-radius: 16px;
	flex-shrink: 0;
	width: auto;
	min-width: 80px;
	cursor: pointer;
}

.lc-toggle-group--grayed-out {
	opacity: 0.5;
	filter: grayscale(100%);
}

.lc-toggle-label {
	font-size: 14px;
	font-weight: 500;
	color: var(--lc-text-secondary);
	white-space: nowrap;
	flex-shrink: 0;
}

.lc-toggle-switch {
	position: relative;
	width: 80px;
	height: 32px;
	min-width: 80px;
	flex-shrink: 0;
	background: #9e2a2b; /* Muted red for off */
	border-radius: 16px;
	cursor: pointer;
	transition: background 0.3s;
	border: none;
	padding: 0;
	display: inline-flex;
	align-items: center;
	color: white;
	font-family: inherit;
}

.lc-toggle-switch:focus-visible {
	outline: 2px solid var(--lc-accent);
	outline-offset: 2px;
}

.lc-toggle-switch[data-on="true"] {
	background: #16a34a; /* Green for on */
}

.lc-toggle-text {
	position: absolute;
	font-size: 13px;
	font-weight: bold;
	line-height: 32px;
	top: 0;
	bottom: 0;
	transition: opacity 0.3s;
	letter-spacing: 0.5px;
	white-space: nowrap;
}

.lc-toggle-text-on {
	left: 14px;
	opacity: 0;
}

.lc-toggle-text-off {
	right: 14px;
	opacity: 1;
}

.lc-toggle-switch[data-on="true"] .lc-toggle-text-on {
	opacity: 1;
}

.lc-toggle-switch[data-on="true"] .lc-toggle-text-off {
	opacity: 0;
}

.lc-toggle-thumb {
	position: absolute;
	top: 2px;
	left: 2px;
	width: 28px;
	height: 28px;
	background: #fff;
	border-radius: 50%;
	transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
	box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.lc-toggle-switch[data-on="true"] .lc-toggle-thumb {
	transform: translateX(48px); /* 80 - 28 - 4 = 48 */
}

.lc-theme-toggle {
	background: transparent;
	border: none;
	font-size: 20px;
	cursor: pointer;
	padding: 4px;
	opacity: 0.7;
	transition: opacity 0.2s;
}
.lc-theme-toggle:hover {
	opacity: 1;
}

/* Disabled filter group (mutual-exclusion partner is active) */
.lc-filter-group--disabled {
	opacity: 0.38;
	pointer-events: none;
	user-select: none;
	transition: opacity 0.25s ease;
}
.lc-filter-group--disabled .lc-multi-select-trigger {
	cursor: not-allowed;
}

/* Locked filter group (parent filter not yet selected) */
.lc-filter-group--locked {
	opacity: 0.45;
	pointer-events: none;
	user-select: none;
	transition: opacity 0.25s ease;
}
.lc-filter-group--locked .lc-multi-select-trigger {
	cursor: not-allowed;
	font-style: italic;
	color: var(--lc-text-muted) !important;
}

/* Clear Filters button */
.lc-clear-filters-btn {
	align-self: flex-end;
	padding: 10px 18px;
	background: transparent;
	color: var(--lc-text-secondary);
	border: 1px solid var(--lc-border);
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.2s, color 0.2s, border-color 0.2s;
	flex-shrink: 0;
}
.lc-clear-filters-btn:hover {
	background: var(--lc-button-hover-bg);
	color: var(--lc-text-primary);
	border-color: var(--lc-text-secondary);
}

/* =============================================================================
   FullCalendar Overrides
   ============================================================================= */
.lc-calendar-wrap .fc {
	background: var(--lc-bg);
	color: var(--lc-text-primary);
	border: 1px solid var(--lc-border);
	border-radius: 0 0 12px 12px;
}

.lc-calendar-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: var(--lc-modal-overlay);
	backdrop-filter: blur(4px);
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
	border-radius: 12px;
}

.lc-calendar-overlay--active {
	opacity: 1;
	pointer-events: auto;
}

.lc-spinner {
	width: 50px;
	height: 50px;
	border: 4px solid var(--lc-border);
	border-top-color: var(--lc-accent);
	border-radius: 50%;
	animation: lc-spin 1s linear infinite;
}

@keyframes lc-spin {
	to { transform: rotate(360deg); }
}

/* Disable underlines from theme links inside calendar */
.lc-calendar-wrap .fc a {
	text-decoration: none !important;
	color: inherit;
	border: none !important;
	box-shadow: none !important;
}

/* Hide FullCalendar's default header since we use our custom one */
.lc-calendar-wrap .fc-toolbar.fc-header-toolbar {
	display: none;
}

.lc-calendar-wrap .fc-col-header-cell {
	background: var(--lc-header-bg);
	color: var(--lc-text-secondary);
	font-size: 13px;
	font-weight: 600;
	padding: 12px 0;
	border-color: var(--lc-border);
}

.lc-calendar-wrap .fc-theme-standard td, 
.lc-calendar-wrap .fc-theme-standard th {
	border-color: var(--lc-border);
}

.lc-calendar-wrap .fc-daygrid-day-number {
	color: var(--lc-text-secondary);
	font-size: 14px;
	padding: 8px;
}

.lc-calendar-wrap .fc-day-today {
	background: var(--lc-today-bg) !important;
}

.lc-calendar-wrap .fc-day-today .fc-daygrid-day-number {
	background: transparent;
	color: var(--lc-accent);
	font-weight: 700;
	border: none;
	padding: 4px 8px;
	margin: 4px;
	display: inline-flex;
	align-items: center;
}

.lc-calendar-wrap .fc-day-today .fc-daygrid-day-number::after {
	content: 'Today';
	margin-left: 8px;
	background: var(--lc-accent);
	color: #ffffff;
	font-size: 9px;
	font-weight: 700;
	text-transform: uppercase;
	padding: 2px 6px;
	border-radius: 12px;
	letter-spacing: 0.05em;
	line-height: 1.2;
}

/* Event Chips */
.lc-calendar-wrap .fc-event {
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	margin: 1px 2px;
	cursor: pointer;
	transition: transform 0.1s;
}

.lc-calendar-wrap .fc-event:hover {
	opacity: 0.95;
}

/* List View specific overrides */
.lc-calendar-wrap .fc-list-day-cushion {
	background-color: var(--lc-bg) !important;
	color: var(--lc-text-primary) !important;
}
.lc-calendar-wrap .fc-theme-standard .fc-list,
.lc-calendar-wrap .fc-theme-standard .fc-list-day-cushion {
	border-color: var(--lc-border) !important;
}
.lc-calendar-wrap .fc-list-event:hover td {
	background-color: var(--lc-bg) !important;
}

.lc-calendar-wrap .fc-list-event {
	cursor: pointer;
}

.lc-calendar-wrap .lc-event-inner {
	display: flex;
	flex-direction: column;
	border-left: 3px solid var(--event-color);
	background: color-mix(in srgb, var(--event-color) 15%, transparent);
	padding: 2px 4px;
	border-radius: 2px;
	overflow: hidden;
	width: 100%;
	box-sizing: border-box;
	cursor: pointer;
}

.lc-calendar-wrap .lc-event-lodge-name {
	font-weight: 700;
	text-transform: uppercase;
	font-size: 8px;
	letter-spacing: 0.05em;
	color: var(--lc-text-primary);
	margin-bottom: 1px;
}

.lc-calendar-wrap .lc-event-title {
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	color: var(--lc-text-primary);
	font-size: 11px;
	line-height: 1.2;
}

/* =============================================================================
   Legend & Footer
   ============================================================================= */
.lc-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 24px;
	padding: 0 8px;
	flex-wrap: wrap;
	gap: 16px;
}

.lc-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

.lc-legend-item {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 500;
	color: var(--lc-text-secondary);
}

.lc-legend-color {
	width: 12px;
	height: 12px;
	border-radius: 3px;
	background: var(--lc-color);
}

.lc-copyright {
	font-size: 13px;
	color: var(--lc-text-muted);
}

/* =============================================================================
   Placeholder
   ============================================================================= */
.lc-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 400px;
	background: var(--lc-bg);
	border: 1px solid var(--lc-border);
	border-radius: 0 0 12px 12px;
	color: var(--lc-text-muted);
	font-size: 15px;
}

.lc-placeholder--static {
	border-radius: 12px;
}

/* =============================================================================
   Loading Panel
   ============================================================================= */
.lc-loading-panel {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 28px;
	min-height: 400px;
	background: var(--lc-bg);
	border: 1px solid var(--lc-border);
	border-radius: 0 0 12px 12px;
	padding: 48px 24px;
	position: relative;
	overflow: hidden;
}

/* Shimmer sweep across the background */
.lc-loading-panel::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(
		110deg,
		transparent 25%,
		color-mix(in srgb, var(--lc-accent) 6%, transparent) 50%,
		transparent 75%
	);
	background-size: 200% 100%;
	animation: lc-shimmer-sweep 2.4s ease-in-out infinite;
}

@keyframes lc-shimmer-sweep {
	0%   { background-position: 200% 0; }
	100% { background-position: -200% 0; }
}

.lc-loading-panel--static::before {
	display: none;
}

.lc-loading-icon {
	font-size: 52px;
	animation: lc-float 2s ease-in-out infinite;
	filter: drop-shadow(0 6px 12px color-mix(in srgb, var(--lc-accent) 30%, transparent));
}

@keyframes lc-float {
	0%, 100% { transform: translateY(0); }
	50%       { transform: translateY(-10px); }
}

.lc-loading-text {
	text-align: center;
}

.lc-loading-text h2 {
	margin: 0 0 8px;
	font-size: 20px;
	font-weight: 700;
	color: var(--lc-text-primary);
}

.lc-loading-text p {
	margin: 0;
	font-size: 14px;
	color: var(--lc-text-muted);
}

.lc-loading-dots {
	display: flex;
	gap: 8px;
}

.lc-loading-dots span {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--lc-accent);
	animation: lc-dot-bounce 1.2s ease-in-out infinite;
}

.lc-loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.lc-loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes lc-dot-bounce {
	0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
	40%            { transform: scale(1);   opacity: 1; }
}

/* Skeleton rows that mimic calendar week rows */
.lc-loading-skeleton {
	width: 100%;
	max-width: 640px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.lc-loading-skeleton-row {
	display: flex;
	gap: 8px;
}

.lc-loading-skeleton-cell {
	flex: 1;
	height: 14px;
	border-radius: 6px;
	background: var(--lc-border);
	animation: lc-skeleton-pulse 1.6s ease-in-out infinite;
}

.lc-loading-skeleton-cell:nth-child(2) { animation-delay: 0.1s; flex: 1.6; }
.lc-loading-skeleton-cell:nth-child(3) { animation-delay: 0.2s; flex: 0.7; }
.lc-loading-skeleton-cell:nth-child(4) { animation-delay: 0.3s; flex: 1.2; }
.lc-loading-skeleton-cell:nth-child(5) { animation-delay: 0.15s; flex: 0.9; }

@keyframes lc-skeleton-pulse {
	0%, 100% { opacity: 0.4; }
	50%       { opacity: 1; }
}

/* =============================================================================
   Placeholder
   ============================================================================= */
.lc-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 400px;
	background: var(--lc-bg);
	border: 1px solid var(--lc-border);
	border-radius: 0 0 12px 12px;
	color: var(--lc-text-muted);
	font-size: 15px;
}

/* =============================================================================
   Event Details Modal
   ============================================================================= */
.lc-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	height: 100%;
	box-sizing: border-box;
	background: var(--lc-modal-overlay);
	backdrop-filter: blur(4px);
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	opacity: 0;
	animation: lc-fade-in 0.2s forwards;
}

@keyframes lc-fade-in {
	to { opacity: 1; }
}

.lc-modal-card {
	background: var(--lc-bg);
	color: var(--lc-text-primary);
	border-radius: 16px;
	width: 100%;
	max-width: 500px;
	max-height: 90vh;
	box-sizing: border-box;
	box-shadow: var(--lc-shadow);
	overflow-x: hidden;
	overflow-y: auto;
	position: relative;
	transform: translateY(10px);
	animation: lc-slide-up 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes lc-slide-up {
	to { transform: translateY(0); }
}

.lc-modal-close {
	position: absolute;
	top: 16px;
	right: 16px;
	background: rgba(255,255,255,0.9);
	color: #111;
	border: none;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	cursor: pointer;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
	z-index: 10;
	transition: background 0.2s;
}

.lc-modal-close:hover {
	background: #fff;
}

.lc-modal-header-img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	background: #cbd5e1;
}

.lc-modal-content {
	padding: 24px;
}

.lc-modal-lodge-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 20px;
}

.lc-modal-lodge-info h2 {
	margin: 0 0 8px;
	font-size: 22px;
	font-weight: 700;
}

.lc-modal-lodge-meta {
	font-size: 13px;
	color: var(--lc-text-secondary);
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.lc-modal-visit-btn {
	background: var(--lc-button-bg);
	color: var(--lc-button-text);
	border: 1px solid var(--lc-border);
	padding: 8px 16px;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.2s;
}

.lc-modal-visit-btn:hover {
	background: var(--lc-button-hover-bg);
}

.lc-modal-divider {
	height: 1px;
	background: var(--lc-border);
	margin: 20px 0;
}

.lc-modal-event-subtitle {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--lc-accent);
	margin-bottom: 4px;
}

.lc-modal-event-title {
	font-size: 20px;
	font-weight: 700;
	margin: 0 0 16px;
}

.lc-modal-add-dropdown {
	position: relative;
	display: inline-block;
	margin-bottom: 24px;
}

.lc-modal-add-btn {
	background: var(--lc-accent);
	color: #fff;
	border: none;
	padding: 10px 16px;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.lc-modal-add-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	background: var(--lc-bg);
	border: 1px solid var(--lc-border);
	border-radius: 6px;
	box-shadow: var(--lc-shadow);
	z-index: 1000;
	min-width: 200px;
	margin-top: 4px;
	overflow: hidden;
}

.lc-modal-add-menu a {
	display: block;
	padding: 10px 16px;
	color: var(--lc-text-primary);
	text-decoration: none;
	font-size: 13px;
	font-weight: 500;
	transition: background 0.2s;
}

.lc-modal-add-menu a:hover {
	background: var(--lc-bg-alt);
}

.lc-modal-add-dropdown:hover .lc-modal-add-menu,
.lc-modal-add-dropdown:focus-within .lc-modal-add-menu {
	display: block;
}

.lc-modal-datetime-box {
	background: var(--lc-bg-alt);
	border: 1px solid var(--lc-border);
	border-radius: 8px;
	padding: 16px;
	display: flex;
	gap: 24px;
	margin-bottom: 24px;
}

.lc-modal-dt-col {
	flex: 1;
}

.lc-modal-dt-label {
	font-size: 11px;
	font-weight: 700;
	color: var(--lc-text-muted);
	text-transform: uppercase;
	margin-bottom: 4px;
	display: flex;
	align-items: center;
	gap: 4px;
}

.lc-modal-dt-value {
	font-size: 14px;
	font-weight: 600;
	color: var(--lc-text-primary);
}

.lc-modal-desc-label {
	font-size: 11px;
	font-weight: 700;
	color: var(--lc-text-muted);
	text-transform: uppercase;
	margin-bottom: 8px;
}

.lc-modal-desc {
	font-size: 14px;
	line-height: 1.6;
	color: var(--lc-text-secondary);
	margin-bottom: 24px;
}

.lc-modal-footer {
	display: flex;
	justify-content: flex-end;
	padding-top: 16px;
	border-top: 1px solid var(--lc-border);
}

.lc-modal-cancel-btn {
	background: transparent;
	border: none;
	color: var(--lc-text-primary);
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	padding: 8px 16px;
	transition: color 0.2s;
}

.lc-modal-cancel-btn:hover {
	color: var(--lc-accent);
}

.lc-modal-visit-btn {
	display: inline-block;
	background: var(--lc-bg-alt);
	border: 1px solid var(--lc-border);
	color: var(--lc-text-primary);
	text-decoration: none;
	font-size: 12px;
	font-weight: 600;
	padding: 6px 12px;
	border-radius: 6px;
	transition: background 0.2s;
}

.lc-modal-visit-btn:hover {
	background: var(--lc-border);
}

.lc-modal-map-link {
	color: var(--lc-text-primary);
	text-decoration: underline;
	transition: color 0.2s;
}

.lc-modal-map-link:hover {
	color: var(--lc-accent);
}

/* =============================================================================
   Responsive
   ============================================================================= */
@media (max-width: 768px) {
	.lc-header-wrapper {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
	}
	.lc-filter-group {
		min-width: 100%;
	}
	.lc-modal-datetime-box {
		flex-direction: column;
		gap: 16px;
	}
}

/* =============================================================================
   Disclaimer
   ============================================================================= */
.lc-disclaimer {
	font-size: 0.85rem;
	color: var(--lc-text-muted);
	text-align: center;
	padding: 12px 16px 0;
	margin-top: 16px;
	border-top: 1px solid var(--lc-border);
	width: 100%;
}
}

@media (max-width: 600px) {
	.lc-calendar-wrap {
		padding: 12px;
	}
	.lc-header-wrapper {
		flex-direction: column;
		gap: 12px;
		align-items: stretch;
	}
	.lc-nav-controls {
		justify-content: space-between;
		width: 100%;
	}
	.lc-calendar-title {
		text-align: center;
		font-size: 22px;
	}
	.lc-modal-card {
		max-height: 95vh;
	}
	.lc-modal-content {
		padding: 16px;
	}
	.lc-modal-header-img {
		height: 140px;
	}
}

/* =============================================================================
   Upcoming Events Widget
   ============================================================================= */
.lc-upcoming-events-widget {
	background: #18181b;
	border: 1px solid #27272a;
	border-radius: 12px;
	padding: 24px;
	color: #fff;
	font-family: 'Inter', sans-serif;
	box-shadow: 0 10px 25px rgba(0,0,0,0.5);
	width: 100%;
	box-sizing: border-box;
}
.lc-upcoming-header-wrap {
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: 1px solid #27272a;
	margin-bottom: 12px;
	padding-bottom: 12px;
}
.lc-upcoming-header {
	margin: 0;
	font-size: 24px;
	font-weight: 700;
	color: #f8fafc;
	border-bottom: none;
	padding-bottom: 0;
}
.lc-upcoming-header-icon {
	font-size: 20px;
}
.lc-upcoming-list {
	display: flex;
	flex-direction: column;
	gap: 0;
	max-height: 380px;
	overflow-y: auto;
	overflow-x: hidden;
	padding-right: 8px; /* space for scrollbar */
	margin-right: -8px; /* offset padding */
}
/* Custom scrollbar for webkit */
.lc-upcoming-list::-webkit-scrollbar {
	width: 6px;
}
.lc-upcoming-list::-webkit-scrollbar-track {
	background: #18181b;
	border-radius: 4px;
}
.lc-upcoming-list::-webkit-scrollbar-thumb {
	background: #3f3f46;
	border-radius: 4px;
}
.lc-upcoming-list::-webkit-scrollbar-thumb:hover {
	background: #52525b;
}

.lc-upcoming-item {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 12px 0;
	background: transparent;
	border-radius: 0;
	text-decoration: none;
	transition: opacity 0.2s;
	border: none;
	border-bottom: 1px solid #27272a;
}
.lc-upcoming-item:last-child {
	border-bottom: none;
}
.lc-upcoming-item:hover {
	opacity: 0.8;
	background: transparent;
	border-color: #27272a;
	transform: none;
}
.lc-upcoming-date {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	background: #fff;
	width: 50px;
	height: 52px;
	border-radius: 6px;
	border: none;
	overflow: hidden;
	box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.lc-up-month {
	font-size: 11px;
	text-transform: uppercase;
	font-weight: 800;
	line-height: 1;
	padding: 4px 0;
	width: 100%;
	text-align: center;
	color: #fff;
}
.lc-up-day {
	font-size: 22px;
	font-weight: 800;
	line-height: 1;
	color: #0f172a;
	margin-top: auto;
	margin-bottom: auto;
}
.lc-upcoming-details {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-width: 0;
	justify-content: center;
}
.lc-upcoming-title {
	font-weight: 700;
	font-size: 16px;
	color: #f8fafc;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	margin-bottom: 4px;
}
.lc-upcoming-meta {
	font-size: 12px;
	color: #94a3b8;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.lc-upcoming-chevron {
	font-size: 20px;
	color: #64748b;
	font-weight: 300;
	margin-left: 8px;
}
.lc-upcoming-more {
	display: block;
	text-align: center;
	margin-top: 16px;
	padding: 12px;
	font-weight: 600;
	font-size: 14px;
	color: #fde047;
	text-decoration: none;
	border: 1px solid #fde047;
	border-radius: 6px;
	transition: background 0.2s, color 0.2s;
}
.lc-upcoming-more:hover {
	text-decoration: none;
	background: #fde047;
	color: #0f172a;
}
.lc-upcoming-empty {
	text-align: center;
	padding: 20px;
	color: #94a3b8;
}
