/* Short Marine Boats - Listing Page Styles */

.sm-boats-listing-wrapper {
	background: #020413;
	color: #ffffff;
	display: flex;
	min-height: 100vh;
}

.sm-boats-filters-sidebar {
	width: 300px;
	background: #020413;
	padding: 40px 20px;
	border-right: 1px solid rgba(255, 255, 255, 0.25);
}

.sm-boats-content {
	flex: 1;
	padding: 40px 20px;
}

.sm-boats-filters {
	position: sticky;
	top: 20px;
}

.sm-filter-group {
	margin-bottom: 20px;
}

.sm-filter-group label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	color: #999;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-bottom: 10px;
}

.sm-filter-select,
.sm-filter-input {
	width: 100%;
	padding: 12px;
	background: #0a0a1a;
	border: 1px solid rgba(255, 255, 255, 0.25);
	color: #ffffff;
	font-size: 14px;
	border-radius: 0;
	transition: all 0.2s ease;
	-webkit-appearance: none;
	appearance: none;
}

.sm-filter-select:hover,
.sm-filter-input:hover {
	border-color: #beaf93;
}

.sm-filter-select:focus,
.sm-filter-input:focus {
	outline: none;
	border-color: #beaf93;
	background: #0a0a1a;
}

.sm-filter-select option {
	background: #0a0a1a;
	color: #ffffff;
	padding: 10px;
	margin: 0;
}

.sm-filter-select option:checked {
	background: #beaf93;
	color: #020413;
}

/* Custom Select Dropdown */
.sm-custom-select-container {
	position: relative;
	width: 100%;
}

.sm-custom-select-display {
	width: 100%;
	padding: 12px;
	background: #0a0a1a;
	border: 1px solid rgba(255, 255, 255, 0.25);
	color: #ffffff;
	font-size: 14px;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	transition: all 0.2s ease;
	user-select: none;
}

.sm-custom-select-display:hover {
	border-color: #beaf93;
}

.sm-custom-select-container.open .sm-custom-select-display {
	border-color: #beaf93;
	background: #0a0a1a;
}

.sm-custom-select-arrow {
	font-size: 11px;
	color: #999;
	transition: transform 0.2s ease;
}

.sm-custom-select-container.open .sm-custom-select-arrow {
	transform: rotate(180deg);
	color: #beaf93;
}

.sm-custom-select-menu {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: #0a0a1a;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-top: none;
	max-height: 300px;
	overflow-y: auto;
	display: none;
	z-index: 1000;
}

.sm-custom-select-option {
	padding: 12px;
	color: #ffffff;
	font-size: 14px;
	cursor: pointer;
	transition: all 0.2s ease;
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sm-custom-select-option:last-child {
	border-bottom: none;
}

.sm-custom-select-option:hover {
	background: rgba(190, 175, 147, 0.1);
	color: #beaf93;
}

.sm-custom-select-option.active {
	background: #beaf93;
	color: #020413;
	font-weight: 600;
}

.sm-custom-select-option.active:hover {
	background: #beaf93;
	color: #020413;
}

.sm-filter-button {
	width: 100%;
	padding: 12px;
	background: rgba(190, 175, 147, 0.1);
	border: 1px solid #beaf93;
	color: #beaf93;
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
	cursor: pointer;
	transition: all 0.2s ease;
	border-radius: 0;
}

.sm-filter-button:hover {
	background: #beaf93;
	color: #020413;
}

.sm-boats-grid {
	display: grid;
	gap: 20px;
	margin-bottom: 50px;
}

.sm-boat-card {
	background: #020413;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 0;
	overflow: hidden;
	transition: all 0.3s ease;
}

.sm-boat-card:hover {
	border-color: #beaf93;
	transform: translateY(-5px);
}

.sm-boat-card-link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.sm-boat-card-image {
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #1a1a1a;
	position: relative;
}

.sm-boat-status-badge {
	position: absolute;
	top: 0;
	left: 0;
	background: #a79a83;
	color: #ffffff;
	padding: 8px 16px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
	z-index: 10;
}

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

.sm-boat-card:hover .sm-boat-card-image img {
	transform: scale(1.05);
}

.sm-boat-card-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background: #0a0a1a;
	color: #666;
	font-size: 14px;
}

.sm-boat-card-content {
	padding: 20px;
	text-align: center;
}

.sm-boat-card-title {
	margin: 0 0 10px 0;
	font-size: 14px;
	font-weight: 700;
	color: #ffffff;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	text-align: left;
}

.sm-boat-card-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
}

.sm-boat-card-year {
	font-size: 12px;
	font-weight: 500;
	color: #a79a83;
	text-align: left;
}

.sm-boat-card-price {
	margin: 0;
	font-size: 14px;
	font-weight: 500;
	color: #beaf93;
	text-align: right;
}

.sm-boats-no-results {
	text-align: center;
	color: #999;
	font-size: 16px;
	padding: 40px;
	grid-column: 1 / -1;
}

/* Pagination */
.sm-boats-pagination {
	text-align: center;
	margin-top: 40px;
	max-width: 1400px;
	margin-left: auto;
	margin-right: auto;
}

.sm-boats-pagination a,
.sm-boats-pagination span {
	display: inline-block;
	padding: 10px 15px;
	margin: 0 5px;
	background: rgba(255, 255, 255, 0.05);
	color: #beaf93;
	text-decoration: none;
	border: 1px solid rgba(255, 255, 255, 0.25);
	transition: all 0.2s ease;
}

.sm-boats-pagination a:hover {
	background: #beaf93;
	color: #020413;
	border-color: #beaf93;
}

.sm-boats-pagination .current {
	background: #beaf93;
	color: #020413;
	border-color: #beaf93;
}

/* Hide filter buttons on desktop by default */
.sm-boats-filter-toggle {
	display: none;
}

.sm-boats-filter-close {
	display: none;
}

/* Mobile filter buttons */
@media (max-width: 768px) {
	.sm-boats-filter-toggle {
		display: none;
	}

	.sm-boats-filter-toggle.visible {
		display: block;
	}

	.sm-boats-filters-sidebar .sm-boats-filter-close {
		display: none;
	}

	.sm-boats-filters-sidebar:not(.closed) .sm-boats-filter-close {
		display: block;
	}
}

/* Responsive */
@media (max-width: 1024px) {
	.sm-boats-filters-sidebar {
		width: 250px;
		padding: 30px 15px;
	}

	.sm-boats-content {
		padding: 30px 15px;
	}

	.sm-boats-grid {
		gap: 20px;
	}

	.sm-boat-card-title {
		font-size: 16px;
	}

	.sm-boat-card-price {
		font-size: 18px;
	}
}

@media (max-width: 768px) {
	.sm-boats-listing-wrapper {
		flex-direction: column;
	}

	.sm-boats-filter-toggle,
	.sm-boats-filter-close {
		width: 100%;
		padding: 15px;
		margin: 0;
		background: rgba(190, 175, 147, 0.1);
		border: 1px solid #beaf93;
		color: #beaf93;
		font-size: 14px;
		font-weight: 600;
		text-transform: uppercase;
		letter-spacing: 1px;
		cursor: pointer;
		transition: all 0.2s ease;
	}

	.sm-boats-filter-toggle:hover,
	.sm-boats-filter-close:hover {
		background: #beaf93;
		color: #020413;
	}

	.sm-boats-filters-sidebar {
		width: 100%;
		border-right: none;
		border-bottom: 1px solid rgba(255, 255, 255, 0.1);
		padding: 30px 15px;
		max-height: 1000px;
		overflow: hidden;
		transition: max-height 0.3s ease;
	}

	.sm-boats-filters-sidebar.closed {
		max-height: 0;
		padding: 0 15px;
	}

	.sm-boats-filter-close {
		margin-bottom: 20px;
		background: rgba(190, 175, 147, 0.1);
		border: 1px solid #beaf93;
		padding: 15px;
	}

	.sm-boats-content {
		padding: 30px 15px;
	}

	.sm-boats-filters {
		position: relative;
		top: auto;
	}

	.sm-boats-grid {
		gap: 20px;
		margin-bottom: 40px;
		grid-template-columns: 1fr !important;
	}

	.sm-boat-card-content {
		padding: 15px;
	}

	.sm-boat-card-title {
		font-size: 14px;
	}

	.sm-boat-card-price {
		font-size: 16px;
	}
}

@media (max-width: 480px) {
	.sm-boats-listing {
		padding: 20px 12px;
	}

	.sm-boats-grid {
		gap: 15px;
		grid-template-columns: 1fr !important;
	}

	.sm-boat-card-content {
		padding: 12px;
	}

	.sm-boat-card-title {
		font-size: 13px;
		margin-bottom: 8px;
	}

	.sm-boat-card-price {
		font-size: 14px;
	}

	.sm-boats-pagination a,
	.sm-boats-pagination span {
		padding: 8px 12px;
		margin: 3px;
		font-size: 12px;
	}
}
