/**
 * Public styles for Campervan Research plugin - Australian Edition
 */

/* Campervan List Styles */
.campervan-research-list {
	margin: 20px 0;
}

.campervan-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 20px;
	margin-top: 20px;
}

.campervan-item {
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	position: relative;
}

.campervan-item:hover {
	transform: translateY(-3px);
	box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.campervan-item[data-status="sold"] {
	opacity: 0.8;
}

.campervan-image {
	position: relative;
	height: 200px;
	overflow: hidden;
}

.campervan-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.campervan-item:hover .campervan-image img {
	transform: scale(1.05);
}

.status-overlay {
	position: absolute;
	top: 10px;
	right: 10px;
	background: rgba(255, 59, 48, 0.9);
	color: white;
	padding: 4px 8px;
	border-radius: 4px;
	font-size: 0.8em;
	font-weight: 600;
	text-transform: uppercase;
}

.campervan-header {
	padding: 20px;
	padding-bottom: 10px;
}

.campervan-name {
	margin: 0 0 8px 0;
	font-size: 1.3em;
	color: #333;
	font-weight: 600;
	line-height: 1.2;
}

.campervan-meta {
	display: flex;
	gap: 10px;
	font-size: 0.9em;
	color: #666;
	margin-bottom: 10px;
}

.rating {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 8px;
}

.rating-value {
	font-weight: 600;
	font-size: 0.9em;
	color: #333;
}

.rating-bar {
	flex: 1;
	height: 4px;
	background: #e0e0e0;
	border-radius: 2px;
	overflow: hidden;
}

.rating-fill {
	height: 100%;
	background: linear-gradient(90deg, #ff4757, #ffa502, #2ed573);
	transition: width 0.3s ease;
}

.campervan-details {
	padding: 0 20px;
}

.price {
	font-size: 1.3em;
	color: #2c5aa0;
	font-weight: 700;
	margin-bottom: 12px;
}

.specs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 12px;
}

.spec {
	background: #f8f9fa;
	padding: 6px 10px;
	border-radius: 20px;
	font-size: 0.8em;
	color: #555;
	border: 1px solid #e9ecef;
	white-space: nowrap;
}

.description {
	margin: 12px 0;
	color: #666;
	line-height: 1.5;
	font-size: 0.9em;
}

.campervan-footer {
	padding: 15px 20px;
	border-top: 1px solid #f0f0f0;
	background: #fafafa;
}

.location {
	display: flex;
	align-items: center;
	gap: 5px;
	color: #777;
	font-size: 0.9em;
	margin-bottom: 8px;
}

.location-icon {
	opacity: 0.7;
}

.date-listed {
	color: #999;
	font-size: 0.85em;
	margin-bottom: 8px;
}

.view-ad-btn {
	display: inline-block;
	background: #007cba;
	color: white;
	padding: 8px 16px;
	border-radius: 6px;
	text-decoration: none;
	font-size: 0.85em;
	font-weight: 500;
	transition: background 0.3s ease;
}

.view-ad-btn:hover {
	background: #005a87;
	color: white;
	text-decoration: none;
}

/* Search Form Styles */
.campervan-search-form {
	background: #f9f9f9;
	padding: 20px;
	border-radius: 8px;
	margin-bottom: 30px;
	border: 1px solid #ddd;
}

.search-button {
	background: #0073aa;
	color: white;
	padding: 12px 24px;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 16px;
}

.search-button:hover {
	background: #005a87;
}

/* Admin List Status Badges */
.status-badge {
	padding: 4px 8px;
	border-radius: 12px;
	font-size: 0.75em;
	font-weight: 600;
	text-transform: uppercase;
}

.status-available {
	background: #d4edda;
	color: #155724;
}

.status-sold {
	background: #f8d7da;
	color: #721c24;
}

.status-unknown {
	background: #fff3cd;
	color: #856404;
}

.rating-none {
	color: #999;
}

/* Search form filters */
.search-filters {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 15px;
	margin-top: 15px;
}

.filter-field label {
	display: block;
	margin-bottom: 5px;
	font-weight: 500;
	color: #333;
}

.filter-field input,
.filter-field select {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
	.campervan-grid {
		grid-template-columns: 1fr;
		gap: 15px;
	}
	
	.search-filters {
		grid-template-columns: 1fr;
	}
	
	.campervan-image {
		height: 150px;
	}
}

.button:hover {
    background-color: #005177;
}