/**
 * Aura Car Rental - Frontend Styles
 *
 * @package    Aura_Car_Rental
 * @since      1.0.0
 */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Alice&family=Open+Sans:wght@400;600&display=swap');

/* Flatpickr Custom Colors */
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected.inRange,
.flatpickr-day.startRange.inRange,
.flatpickr-day.endRange.inRange,
.flatpickr-day.selected:focus,
.flatpickr-day.startRange:focus,
.flatpickr-day.endRange:focus,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover,
.flatpickr-day.selected.prevMonthDay,
.flatpickr-day.startRange.prevMonthDay,
.flatpickr-day.endRange.prevMonthDay,
.flatpickr-day.selected.nextMonthDay,
.flatpickr-day.startRange.nextMonthDay,
.flatpickr-day.endRange.nextMonthDay {
	background: #F3EDE6 !important;
	border-color: #F3EDE6 !important;
	color: #333 !important;
}

.flatpickr-day.inRange {
	background: rgba(243, 237, 230, 0.3) !important;
	border-color: transparent !important;
	box-shadow: -5px 0 0 #F3EDE6, 5px 0 0 #F3EDE6 !important;
}

/* Main Widget Container */
.aura-car-rental-widget {
	max-width: 100%;
	margin: 0 auto;
	
}

/* Heading */
.aura-car-rental-heading {
	font-family: 'Alice', serif !important;
	font-size: 2em !important;
	font-weight: 400 !important;
	margin-bottom: 30px !important;
	color: #333 !important;
}

/* Date Selector */
.aura-car-date-selector {
	margin-bottom: 30px !important;
}

.aura-car-date-selector label {
	font-family: 'Open Sans', sans-serif !important;
	font-size: 1em !important;
	font-weight: 600 !important;
	display: block !important;
	margin-bottom: 10px !important;
	color: #333 !important;
}

.aura-car-date-range {
	width: 100% !important;
	max-width: 400px !important;
	padding: 12px 15px !important;
	font-family: 'Open Sans', sans-serif !important;
	font-size: 1em !important;
	font-weight: 400 !important;
	border: 1px solid #ddd !important;
	border-radius: 4px !important;
	background-color: #fff !important;
	cursor: pointer !important;
}

.aura-car-date-range:focus {
	outline: none !important;
	border-color: #999 !important;
}

/* Car List Grid */
.aura-car-list {
	display: grid !important;
	gap: 20px !important;
	transition: all 0.3s ease !important;
}

/* Column variations */
[data-columns="1"] .aura-car-list {
	grid-template-columns: 1fr !important;
}

[data-columns="2"] .aura-car-list {
	grid-template-columns: repeat(2, 1fr) !important;
}

[data-columns="3"] .aura-car-list {
	grid-template-columns: repeat(3, 1fr) !important;
}

[data-columns="4"] .aura-car-list {
	grid-template-columns: repeat(4, 1fr) !important;
}

[data-columns="auto"] .aura-car-list {
	grid-template-columns: repeat(auto-fit, minmax(275px, 1fr)) !important;
	justify-content: start !important;
}

/* Responsive */
@media (max-width: 1024px) {
	[data-columns="4"] .aura-car-list {
		grid-template-columns: repeat(3, 1fr) !important;
	}
}

@media (max-width: 768px) {
	[data-columns="3"] .aura-car-list,
	[data-columns="4"] .aura-car-list {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}

@media (max-width: 480px) {
	[data-columns="2"] .aura-car-list,
	[data-columns="3"] .aura-car-list,
	[data-columns="4"] .aura-car-list {
		grid-template-columns: 1fr !important;
	}
}

/* Individual Car Item */
.aura-car-item {
	position: relative !important;
	display: flex !important;
	flex-direction: column !important;
	padding: 24px !important;
	background-color: transparent !important;
	border: 1px solid #000 !important;

}

/* Car Name */
.aura-car-name {
	font-family: 'Alice', serif !important;
	font-size: 1.5em !important;
	font-weight: 400 !important;
	margin-bottom: 10px !important;
	color: #333 !important;
}

/* Model */
.aura-car-model {
	font-family: 'Open Sans', sans-serif !important;
	font-size: 0.9em !important;
	font-weight: 400 !important;
	color: #666 !important;
	margin-bottom: 15px !important;
	display: block !important;
}

/* Icon and Transmission Container */
.aura-car-icon-transmission {
	display: flex !important;
	align-items: center !important;
	gap: 10px !important;
	margin-bottom: 15px !important;
}

.aura-car-icon {
	flex: 0 0 auto !important;
}

.aura-car-icon img {
	max-width: 50px !important;
	height: auto !important;
	max-height: 50px !important;
	object-fit: contain !important;
	display: block !important;
}

.aura-car-transmission {
	font-family: 'Open Sans', sans-serif !important;
	font-size: 0.9em !important;
	font-weight: 400 !important;
	color: #666 !important;
}

/* Featured Image */
.aura-car-featured-image {
	margin-bottom: 15px !important;
}

.aura-car-featured-image img {
	width: 100% !important;
	height: auto !important;
	display: block !important;
}

/* Price */
.aura-car-price {
	font-family: 'Open Sans', sans-serif !important;
	text-align: right !important;
	margin-bottom: 24px !important;
	padding-bottom: 24px !important;
	border-bottom: 1px solid #000 !important;
}

.aura-car-price-amount {
	font-size: 1.2em !important;
	font-weight: 600 !important;
	color: #333 !important;
	display: block !important;
}

.aura-car-price-unit {
	font-size: 0.9em !important;
	font-weight: 400 !important;
	color: #666 !important;
	display: block !important;
}

/* Checkbox Container */
.aura-car-checkbox-container {
	display: flex !important;
	align-items: center !important;
	gap: 10px !important;
}

.aura-car-checkbox {
	width: 20px !important;
	height: 20px !important;
	cursor: pointer !important;
	accent-color: #333 !important;
	flex-shrink: 0 !important;
}

.aura-car-checkbox-label {
	font-family: 'Open Sans', sans-serif !important;
	font-size: 1em !important;
	font-weight: 400 !important;
	color: #333 !important;
	cursor: pointer !important;
	border-bottom: 1px solid #000 !important;
	padding-bottom: 2px !important;
	display: inline-block !important;
}

/* Hidden Cars */
.aura-car-item.aura-car-item-hidden {
	display: none !important;
}

.aura-car-item.aura-car-item-hidden.aura-car-item-visible {
	display: flex !important;
	animation: slideDownFadeIn 0.4s ease-out forwards !important;
}

/* Collapsing animation */
.aura-car-item.aura-car-item-collapsing {
	animation: slideUpFadeOut 0.3s ease-in forwards !important;
	overflow: hidden !important;
}

@keyframes slideDownFadeIn {
	from {
		opacity: 0;
		transform: translateY(-20px);
		max-height: 0;
	}
	to {
		opacity: 1;
		transform: translateY(0);
		max-height: 2000px;
	}
}

@keyframes slideUpFadeOut {
	from {
		opacity: 1;
		transform: translateY(0);
		max-height: 2000px;
	}
	to {
		opacity: 0;
		transform: translateY(-20px);
		max-height: 0;
	}
}

/* Show More Container */
.aura-car-show-more-container {
	margin-top: 30px !important;
}

/* Hide show more button initially in auto mode (JS will show if needed) */
[data-columns="auto"] .aura-car-show-more-container.aura-hidden {
	display: none !important;
}

.aura-car-divider {
	width: 100% !important;
	height: 1px !important;
	background-color: #B0A695 !important;
	margin-bottom: 20px !important;
}

.aura-car-show-more-btn {
	display: flex !important;
	align-items: center !important;
	gap: 10px !important;
	margin: 0 auto !important;
	padding: 10px 20px !important;
	background: transparent !important;
	border: none !important;
	font-family: 'Open Sans', sans-serif !important;
	font-size: 1em !important;
	font-weight: 600 !important;
	color: #333 !important;
	cursor: pointer !important;
	transition: all 0.3s ease !important;
}

.aura-car-show-more-btn:hover {
	color: #000 !important;
}

.aura-car-chevron {
	transition: transform 0.3s ease !important;
}

.aura-car-show-more-btn.expanded .aura-car-chevron {
	transform: rotate(180deg) !important;
}

/* Notification */
.aura-car-notification {
	position: absolute !important;
	top: 50% !important;
	left: 50% !important;
	transform: translate(-50%, -50%) !important;
	padding: 15px 30px !important;
	background-color: rgba(0, 0, 0, 0.85) !important;
	color: #fff !important;
	font-family: 'Open Sans', sans-serif !important;
	font-size: 0.9em !important;
	font-weight: 600 !important;
	border-radius: 4px !important;
	z-index: 10 !important;
	opacity: 0 !important;
	transition: opacity 0.3s ease !important;
}

.aura-car-notification.show {
	opacity: 1 !important;
}

.aura-car-notification.success {
	background-color: rgba(0, 128, 0, 0.85) !important;
}

.aura-car-notification.error {
	background-color: rgba(255, 0, 0, 0.85) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
	.aura-car-date-range {
		max-width: 100% !important;
	}
}

/* Loading State */
.aura-car-item.loading {
	opacity: 0.6 !important;
	pointer-events: none !important;
}

.aura-car-item.loading::after {
	content: '' !important;
	position: absolute !important;
	top: 50% !important;
	left: 50% !important;
	width: 30px !important;
	height: 30px !important;
	margin: -15px 0 0 -15px !important;
	border: 3px solid #f3f3f3 !important;
	border-top: 3px solid #333 !important;
	border-radius: 50% !important;
	animation: spin 1s linear infinite !important;
}

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