/* ==========================================
   MOBILE INVENTORY PAGE - EXCLUSIVE MOBILE DESIGN
   ========================================== */

/* Hide mobile version by default */
.mobile-inventory {
	display: none;
}

/* Show mobile version and hide desktop on mobile screens */
@media (max-width: 860px) {
	.inventory-page {
		display: none !important;
	}
	
	.mobile-inventory {
		display: block;
	}
}

/* Mobile Inventory Header */
.mobile-inventory-header {
	background: linear-gradient(165deg, #0B2D5B 0%, #0A1F3D 100%);
	padding: 2rem 0 1.5rem;
	color: white;
	position: relative;
	overflow: hidden;
}

.mobile-inventory-header::before {
	content: '';
	position: absolute;
	top: -50%;
	right: -20%;
	width: 300px;
	height: 300px;
	background: radial-gradient(circle, rgba(200, 29, 37, 0.2) 0%, transparent 70%);
	border-radius: 50%;
}

.mobile-inventory-header-content {
	position: relative;
	z-index: 1;
}

.mobile-inventory-title {
	font-size: 1.75rem;
	font-weight: 800;
	margin-bottom: 0.5rem;
	color: white;
	letter-spacing: -0.02em;
}

.mobile-inventory-count {
	font-size: 0.9375rem;
	color: rgba(255, 255, 255, 0.85);
	font-weight: 500;
}

.mobile-inventory-count strong {
	font-weight: 700;
	color: white;
}

/* Mobile Search Bar */
.mobile-search-bar {
	background: white;
	padding: 1rem;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	position: sticky;
	top: 65px;
	z-index: 100;
}

.mobile-search-wrapper {
	position: relative;
}

.mobile-search-input {
	width: 100%;
	padding: 0.875rem 3rem 0.875rem 1rem;
	border: 2px solid #E5E7EB;
	border-radius: 12px;
	font-size: 0.9375rem;
	color: #111827;
	background: #F9FAFB;
	transition: all 0.2s ease;
}

.mobile-search-input:focus {
	outline: none;
	border-color: #0B2D5B;
	background: white;
	box-shadow: 0 0 0 3px rgba(11, 45, 91, 0.1);
}

.mobile-search-icon {
	position: absolute;
	right: 1rem;
	top: 50%;
	transform: translateY(-50%);
	color: #6B7280;
	width: 20px;
	height: 20px;
}

/* Mobile Filter Bar */
.mobile-filter-bar {
	background: white;
	padding: 0.875rem 1rem;
	border-bottom: 1px solid #E5E7EB;
	display: flex;
	gap: 0.75rem;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.mobile-filter-bar::-webkit-scrollbar {
	display: none;
}

.mobile-filter-btn {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.625rem 1rem;
	background: #F3F4F6;
	border: 1px solid #E5E7EB;
	border-radius: 10px;
	font-size: 0.8125rem;
	font-weight: 600;
	color: #374151;
	white-space: nowrap;
	transition: all 0.2s ease;
	flex-shrink: 0;
}

.mobile-filter-btn:active {
	transform: scale(0.97);
	background: #0B2D5B;
	color: white;
	border-color: #0B2D5B;
}

.mobile-filter-btn.active {
	background: #0B2D5B;
	color: white;
	border-color: #0B2D5B;
}

.mobile-filter-btn svg {
	width: 16px;
	height: 16px;
}

.mobile-sort-btn {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.625rem 1rem;
	background: white;
	border: 2px solid #0B2D5B;
	border-radius: 10px;
	font-size: 0.8125rem;
	font-weight: 700;
	color: #0B2D5B;
	white-space: nowrap;
	flex-shrink: 0;
}

/* Mobile Vehicles Grid */
.mobile-vehicles-section {
	padding: 1.25rem 0 2rem;
	background: linear-gradient(180deg, #F8F9FA 0%, #F3F4F6 100%);
}

.mobile-vehicles-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
	padding: 0 1rem;
}

.mobile-vehicle-card {
	background: white;
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06), 0 2px 4px rgba(0, 0, 0, 0.04);
	border: 1px solid #E5E7EB;
	color: inherit;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	display: flex;
	flex-direction: column;
}

.mobile-vehicle-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, #C81D25 0%, #A01820 100%);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	z-index: 10;
	border-radius: 18px 18px 0 0;
}

.mobile-vehicle-card:hover::before {
	transform: scaleX(1);
}

.mobile-vehicle-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 16px 40px rgba(11, 45, 91, 0.15), 0 8px 16px rgba(0, 0, 0, 0.08);
	border-color: rgba(200, 29, 37, 0.2);
}

.mobile-vehicle-image-wrapper {
	display: block;
	text-decoration: none;
}

.mobile-vehicle-image-wrapper::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 60px;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.15), transparent);
	pointer-events: none;
	z-index: 1;
}

.mobile-vehicle-badge {
	position: absolute;
	top: 0.875rem;
	left: 0.875rem;
	background: linear-gradient(135deg, #C81D25 0%, #A01820 100%);
	color: white;
	padding: 0.5rem 0.875rem;
	border-radius: 10px;
	font-size: 0.6875rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	box-shadow: 0 4px 12px rgba(200, 29, 37, 0.4), 0 2px 4px rgba(0, 0, 0, 0.2);
	backdrop-filter: blur(8px);
	z-index: 2;
}

.mobile-vehicle-image {
	width: 100%;
	height: 210px;
	max-width: 100%;
	max-height: 210px;
	object-fit: contain;
	background: linear-gradient(135deg, #F3F4F6 0%, #E5E7EB 100%);
	border-radius: 18px 18px 0 0;
	display: block;
}

.mobile-vehicle-card:hover .mobile-vehicle-image {
	transform: scale(1.05);
}

.mobile-vehicle-content {
	padding: 1.5rem;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.mobile-vehicle-header {
	margin-bottom: 1.25rem;
}

.mobile-vehicle-price {
	font-size: 1.625rem;
	font-weight: 900;
	background: linear-gradient(135deg, #059669 0%, #10b981 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	margin-bottom: 0.625rem;
	letter-spacing: -0.03em;
	line-height: 1;
}

.mobile-vehicle-title {
	font-size: 1.1875rem;
	font-weight: 800;
	color: #111827;
	margin-bottom: 0.5rem;
	line-height: 1.25;
	letter-spacing: -0.02em;
}

.mobile-vehicle-subtitle {
	font-size: 0.875rem;
	color: #6B7280;
	font-weight: 600;
	letter-spacing: -0.01em;
}

.mobile-vehicle-specs {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.875rem;
	margin-bottom: 1.25rem;
	padding: 1.125rem;
	background: linear-gradient(135deg, #F9FAFB 0%, #F3F4F6 100%);
	border-radius: 12px;
	border: 1px solid #E5E7EB;
}

.mobile-spec-item {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	font-size: 0.8125rem;
	color: #374151;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.mobile-spec-icon {
	width: 20px;
	height: 20px;
	color: #0B2D5B;
	flex-shrink: 0;
	opacity: 0.8;
}

.mobile-vehicle-features {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 1.25rem;
}

.mobile-feature-tag {
	font-size: 0.6875rem;
	color: #0B2D5B;
	background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
	padding: 0.5rem 0.75rem;
	border-radius: 8px;
	font-weight: 700;
	letter-spacing: 0.02em;
	border: 1px solid #BFDBFE;
	transition: all 0.2s ease;
}

.mobile-vehicle-card:hover .mobile-feature-tag {
	background: linear-gradient(135deg, #DBEAFE 0%, #BFDBFE 100%);
	transform: scale(0.98);
}

.mobile-vehicle-cta {
	display: flex;
	gap: 0.875rem;
}

.mobile-view-details-btn {
	flex: 1;
	padding: 1rem 1.25rem;
	background: linear-gradient(135deg, #0B2D5B 0%, #0A1F3D 100%);
	color: white;
	text-align: center;
	font-weight: 800;
	font-size: 0.9375rem;
	border-radius: 12px;
	text-decoration: none;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 4px 12px rgba(11, 45, 91, 0.25), 0 2px 4px rgba(0, 0, 0, 0.1);
	letter-spacing: -0.01em;
	position: relative;
	overflow: hidden;
	display: block;
}

.mobile-view-details-btn::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
	transition: left 0.6s ease;
}

.mobile-view-details-btn:hover {
	transform: scale(0.98);
	box-shadow: 0 2px 8px rgba(11, 45, 91, 0.3);
}

.mobile-view-details-btn:hover::before {
	left: 100%;
}

.mobile-call-btn {
	width: 52px;
	height: 52px;
	background: white;
	border: 2.5px solid #0B2D5B;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #0B2D5B;
	flex-shrink: 0;
	transition: all 0.3s ease;
	box-shadow: 0 2px 8px rgba(11, 45, 91, 0.1);
	text-decoration: none;
}

.mobile-call-btn:hover {
	background: #0B2D5B;
	color: white;
	transform: scale(1.05);
	box-shadow: 0 4px 12px rgba(11, 45, 91, 0.3);
}

.mobile-call-btn svg {
	width: 22px;
	height: 22px;
}

/* Mobile Pagination */
.mobile-pagination {
	padding: 2rem 1rem;
	display: flex;
	justify-content: center;
	gap: 0.75rem;
}

.mobile-page-btn {
	min-width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: white;
	border: 2px solid #E5E7EB;
	border-radius: 10px;
	font-weight: 700;
	font-size: 0.9375rem;
	color: #374151;
	text-decoration: none;
	transition: all 0.2s ease;
	padding: 0 1rem;
}

.mobile-page-btn:active {
	transform: scale(0.95);
	background: #F3F4F6;
}

.mobile-page-btn.active {
	background: #0B2D5B;
	color: white;
	border-color: #0B2D5B;
}

.mobile-page-btn:disabled {
	opacity: 0.4;
	pointer-events: none;
}

.mobile-page-btn svg {
	width: 20px;
	height: 20px;
}

/* Mobile Filter Modal */
.mobile-filter-modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: white;
	z-index: 9999;
	display: none;
	flex-direction: column;
	animation: slideUp 0.3s ease;
}

.mobile-filter-modal.active {
	display: flex;
}

@keyframes slideUp {
	from {
		transform: translateY(100%);
	}
	to {
		transform: translateY(0);
	}
}

.mobile-filter-modal-header {
	background: linear-gradient(135deg, #0B2D5B 0%, #0A1F3D 100%);
	color: white;
	padding: 1rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mobile-filter-modal-title {
	font-size: 1.125rem;
	font-weight: 700;
	margin: 0;
}

.mobile-filter-close-btn {
	width: 36px;
	height: 36px;
	background: rgba(255, 255, 255, 0.15);
	border: none;
	border-radius: 8px;
	color: white;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.mobile-filter-close-btn svg {
	width: 20px;
	height: 20px;
}

.mobile-filter-modal-body {
	flex: 1;
	overflow-y: auto;
	padding: 1.5rem 1rem;
}

.mobile-filter-group {
	margin-bottom: 1.5rem;
}

.mobile-filter-label {
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	color: #111827;
	margin-bottom: 0.625rem;
	letter-spacing: -0.01em;
}

.mobile-filter-select {
	width: 100%;
	padding: 0.875rem 1rem;
	border: 2px solid #E5E7EB;
	border-radius: 10px;
	font-size: 0.9375rem;
	color: #111827;
	background: white;
	font-weight: 600;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 1rem center;
	padding-right: 2.5rem;
}

.mobile-filter-select:focus {
	outline: none;
	border-color: #0B2D5B;
	box-shadow: 0 0 0 3px rgba(11, 45, 91, 0.1);
}

.mobile-filter-modal-footer {
	padding: 1rem;
	border-top: 1px solid #E5E7EB;
	display: flex;
	gap: 0.75rem;
	box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
}

.mobile-filter-apply-btn {
	flex: 1;
	padding: 1rem;
	background: linear-gradient(135deg, #0B2D5B 0%, #0A1F3D 100%);
	color: white;
	border: none;
	border-radius: 10px;
	font-weight: 700;
	font-size: 1rem;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
}

.mobile-filter-clear-btn {
	padding: 1rem 1.25rem;
	background: white;
	color: #6B7280;
	border: 2px solid #E5E7EB;
	border-radius: 10px;
	font-weight: 700;
	font-size: 1rem;
	text-decoration: none;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Empty State */
.mobile-empty-state {
	text-align: center;
	padding: 3rem 1.5rem;
}

.mobile-empty-icon {
	width: 80px;
	height: 80px;
	margin: 0 auto 1.5rem;
	background: linear-gradient(135deg, #F3F4F6 0%, #E5E7EB 100%);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #9CA3AF;
}

.mobile-empty-icon svg {
	width: 40px;
	height: 40px;
}

.mobile-empty-title {
	font-size: 1.25rem;
	font-weight: 700;
	color: #111827;
	margin-bottom: 0.5rem;
}

.mobile-empty-text {
	font-size: 0.9375rem;
	color: #6B7280;
	margin-bottom: 1.5rem;
	line-height: 1.5;
}

.mobile-empty-btn {
	display: inline-block;
	padding: 0.875rem 1.5rem;
	background: #0B2D5B;
	color: white;
	border-radius: 10px;
	font-weight: 700;
	text-decoration: none;
}

/* Loading State */
.mobile-loading-card {
	background: white;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
	border: 1px solid #E5E7EB;
}

.mobile-skeleton {
	background: linear-gradient(90deg, #F3F4F6 0%, #E5E7EB 50%, #F3F4F6 100%);
	background-size: 200% 100%;
	animation: shimmer 1.5s infinite;
}

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

.mobile-skeleton-image {
	height: 200px;
}

.mobile-skeleton-content {
	padding: 1.25rem;
}

.mobile-skeleton-line {
	height: 16px;
	border-radius: 4px;
	margin-bottom: 0.75rem;
}

.mobile-skeleton-line.large {
	height: 24px;
	width: 60%;
}

/* Responsive adjustments */
@media (max-width: 480px) {
	.mobile-inventory-header {
		padding: 1.5rem 0 1.25rem;
	}
	
	.mobile-inventory-title {
		font-size: 1.5rem;
	}
	
	.mobile-vehicle-content {
		padding: 1.25rem;
	}
	
	.mobile-vehicle-price {
		font-size: 1.5rem;
	}
	
	.mobile-vehicle-title {
		font-size: 1.0625rem;
	}
	
	.mobile-vehicle-specs {
		grid-template-columns: 1fr;
		gap: 0.75rem;
		padding: 1rem;
	}
	
	.mobile-vehicles-grid {
		gap: 1rem;
	}
}

@media (min-width: 640px) and (max-width: 860px) {
	.mobile-vehicles-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 1.5rem;
	}
	
	.mobile-vehicle-content {
		padding: 1.25rem;
	}
	
	.mobile-vehicle-price {
		font-size: 1.5rem;
	}
	
	.mobile-vehicle-title {
		font-size: 1.0625rem;
	}
}
