/**
 * Booking Availability Calendar Styles for Customers
 */

.atacama-booking-calendar {
	margin: 20px 0;
	padding: 20px;
	background: #ffffff;
	border-radius: 12px;
	border: 1px solid #e0e0e0;
}

.atacama-calendar-loading {
	text-align: center;
	padding: 40px;
	color: #666;
}

.atacama-calendar-error {
	text-align: center;
	padding: 20px;
	color: #e74c3c;
	background: #ffeaea;
	border-radius: 8px;
}

.atacama-public-calendar-wrapper {
	margin-bottom: 25px;
}

/* Navigation */
.atacama-calendar-navigation {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
	padding: 15px;
	background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
	border-radius: 12px;
	border: 1px solid #e0e0e0;
}

.atacama-calendar-nav-btn {
	background: #667eea;
	color: white;
	border: none;
	border-radius: 8px;
	width: 40px;
	height: 40px;
	font-size: 24px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

.atacama-calendar-nav-btn:hover {
	background: #5568d3;
	transform: scale(1.1);
	box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.atacama-calendar-nav-btn:active {
	transform: scale(0.95);
}

.atacama-calendar-month-year {
	display: flex;
	gap: 10px;
	align-items: center;
}

.atacama-calendar-month-select,
.atacama-calendar-year-select {
	padding: 10px 15px;
	border: 2px solid #e0e0e0;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 600;
	color: #333;
	background: white;
	cursor: pointer;
	transition: all 0.3s ease;
	min-width: 140px;
}

.atacama-calendar-month-select:hover,
.atacama-calendar-year-select:hover {
	border-color: #667eea;
}

.atacama-calendar-month-select:focus,
.atacama-calendar-year-select:focus {
	outline: none;
	border-color: #667eea;
	box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.atacama-public-calendar-month {
	margin-bottom: 20px;
}

.atacama-public-calendar-header {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 5px;
	margin-bottom: 10px;
}

.atacama-public-calendar-day-header {
	text-align: center;
	font-size: 12px;
	font-weight: 700;
	color: #666;
	padding: 8px 4px;
	text-transform: uppercase;
}

.atacama-public-calendar-days {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 5px;
}

.atacama-public-calendar-day {
	min-height: 50px;
	border: 2px solid #e8e8e8;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.2s ease;
	position: relative;
	background: #ffffff;
	padding: 6px 4px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.atacama-public-calendar-day.empty {
	border: none;
	cursor: default;
	background: transparent;
	min-height: auto;
	box-shadow: none;
}

.atacama-public-calendar-day.disabled {
	background: #f8f8f8;
	color: #bbb;
	cursor: not-allowed;
	border-color: #e0e0e0;
	opacity: 0.6;
	box-shadow: none;
}

/* Available - Green */
.atacama-public-calendar-day.available {
	background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
	border-color: #4caf50;
}

.atacama-public-calendar-day.available:hover {
	background: linear-gradient(135deg, #c8e6c9 0%, #a5d6a7 100%);
	border-color: #2e7d32;
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3);
}

/* Partially Available - Yellow */
.atacama-public-calendar-day.partial {
	background: linear-gradient(135deg, #fff9c4 0%, #fff59d 100%);
	border-color: #ffc107;
}

.atacama-public-calendar-day.partial:hover {
	background: linear-gradient(135deg, #fff59d 0%, #fff176 100%);
	border-color: #ffa000;
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(255, 193, 7, 0.3);
}

/* Unavailable - Red */
.atacama-public-calendar-day.unavailable {
	background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
	border-color: #f44336;
	cursor: not-allowed;
}

/* Blocked - Dark Red */
.atacama-public-calendar-day.blocked {
	background: linear-gradient(135deg, #ef5350 0%, #e53935 100%);
	border-color: #c62828;
	color: white;
	cursor: not-allowed;
}

/* Selected dates */
.atacama-public-calendar-day.selected {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border-color: #667eea;
	color: white;
	font-weight: 700;
	box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
	transform: scale(1.1);
	z-index: 10;
}

.atacama-public-calendar-day.checkin {
	border-top-left-radius: 12px;
	border-bottom-left-radius: 12px;
}

.atacama-public-calendar-day.checkout {
	border-top-right-radius: 12px;
	border-bottom-right-radius: 12px;
}

.atacama-public-calendar-day.in-range {
	background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
	border-color: #2196f3;
}

.atacama-public-calendar-day .day-number {
	font-size: 14px;
	font-weight: 700;
	color: #1a1a1a;
	margin-bottom: 4px;
}

.atacama-public-calendar-day.selected .day-number,
.atacama-public-calendar-day.blocked .day-number {
	color: white;
}

.atacama-public-calendar-day.disabled .day-number {
	color: #bbb;
	font-weight: 400;
}

.atacama-public-calendar-day .day-units {
	font-size: 9px;
	color: #555;
	font-weight: 700;
	background: rgba(255, 255, 255, 0.8);
	padding: 2px 6px;
	border-radius: 10px;
	margin-top: 2px;
}

.atacama-public-calendar-day.selected .day-units,
.atacama-public-calendar-day.blocked .day-units {
	background: rgba(255, 255, 255, 0.3);
	color: white;
}

/* Legend */
.atacama-public-calendar-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	justify-content: center;
	padding-top: 20px;
	border-top: 1px solid #e0e0e0;
	margin-top: 20px;
}

.atacama-legend-item {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: #666;
}

.atacama-legend-color {
	width: 20px;
	height: 20px;
	border-radius: 4px;
	border: 2px solid;
}

.atacama-legend-color.available {
	background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
	border-color: #4caf50;
}

.atacama-legend-color.partial {
	background: linear-gradient(135deg, #fff9c4 0%, #fff59d 100%);
	border-color: #ffc107;
}

.atacama-legend-color.unavailable {
	background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
	border-color: #f44336;
}

.atacama-legend-color.blocked {
	background: linear-gradient(135deg, #ef5350 0%, #e53935 100%);
	border-color: #c62828;
}

/* Responsive */
@media (max-width: 768px) {
	.atacama-calendar-navigation {
		flex-direction: column;
		gap: 15px;
		padding: 12px;
	}
	
	.atacama-calendar-month-year {
		width: 100%;
		justify-content: center;
		flex-wrap: wrap;
	}
	
	.atacama-calendar-month-select,
	.atacama-calendar-year-select {
		flex: 1;
		min-width: 120px;
		font-size: 14px;
		padding: 8px 12px;
	}
	
	.atacama-calendar-nav-btn {
		width: 100%;
		max-width: 200px;
		margin: 0 auto;
	}
	
	.atacama-public-calendar-day {
		min-height: 45px;
		padding: 4px 2px;
	}
	
	.atacama-public-calendar-day .day-number {
		font-size: 12px;
	}
	
	.atacama-public-calendar-day .day-units {
		font-size: 8px;
		padding: 1px 4px;
	}
	
	.atacama-public-calendar-legend {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}
}

