.yacht-charter {
    width: calc(100% - 80px);
    max-width: 1300px;
    display: flex;
    flex-direction: column;
    margin: 40px 0;
}

.yacht-charter-filters {
    margin: 40px 0;
    gap: 30px;
	display: flex;
	flex-direction: row;
}

.yacht-search-and-sort {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    width: 100%;
}

.filters-col {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	width: 100%;
}
.horizontal {
	display: flex;
	flex-direction: row;
	gap: 1rem;
	width: 100%;
}


@media (max-width: 1000px) {
	.yacht-charter-filters {
		flex-direction: column;
		gap: 1rem;
	}

	.filters-col {
		gap: 1rem;
	}
}

@media (max-width: 768px) {
	.yacht-charter {
		width: calc(100% - 60px);
	}
}

/* ~~~~~~~~~~ */

/* START OF YACHT GRID AND ITEM CSS */

.yachts-grid {
	column-gap: 3rem;
	row-gap: 4rem;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    margin: 80px 0;
	overflow: hidden;
}
.yacht-charter-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
}

.yacht-charter-grid > :nth-child(3) {
	grid-column: 1 / -1;
}
.yacht {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
    cursor: pointer;
    gap: 4px;
	position: relative;
	-webkit-user-drag: none;
    user-select: none;
	border-radius: 30px;
}

@media (max-width: 768px) {
	.yacht-charter-grid {
		grid-template-columns: 1fr;
		margin: 0 auto;
		width: calc(100% - 40px);
	}
	.yacht-charter-grid > :nth-child(3) {
		grid-column: 1;
	}

	.yacht {
		aspect-ratio: 1.5;
	}
}

@media (min-width: 768px) {
	.yacht:hover img {
		filter: brightness(0.8);
	}
}

.yacht img {
	height: 100%;
	width: 100%;
	object-fit: cover;
	opacity: 1;
	transition: filter .2s;
	-webkit-user-drag: none;
	user-select: none;
	pointer-events: none;
	max-height: 390px;
}
.yacht {
	position: relative;
	overflow: hidden;
}


.yacht::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top,rgba(0, 0, 0, 0.65) 0%,rgba(0, 0, 0, 0.25) 50%,rgba(0, 0, 0, 0) 60%);
	pointer-events: none;
	z-index: 2;
}

.yacht > * {
	position: relative;
	z-index: 2;
}
.yacht-info {
	display: flex;
	flex-direction: column;
	gap: 4px;
	position: absolute;
	bottom: 30px;
	left: 30px;
	z-index: 3;
	width: calc(100% - 60px);
}

@media (max-width: 768px) {
	.yacht-info {
		bottom: 20px;
		left: 20px;
		width: calc(100% - 40px);
	}
}
.yacht-title {
	font-family: Libre_Baskerville;
	font-size: clamp(1.3rem, 4vw, 1.9rem);
	color: white;
	line-height: 1;
	text-transform: uppercase;
}
.yachts-specs {
    margin-top: 5px;
}
.yachts-specs,
.yachts-rate {
	font-weight: 200;
	letter-spacing: .07rem;
	font-size: 0.8rem;
	color: #dddddd;
	line-height: 1;
	font-family: system-ui;
}
.yachts-rate {
	color: white;
	font-weight: 400;
	margin-bottom: 4px;
}
.view-yacht {
	width: fit-content;
	border: none;
	background-color: transparent;
	padding: 0;
	margin: 0;
	letter-spacing: .1em;
	font-size: 1rem;
	font-weight: 600;
	color: #ffffff;
	transition: box-shadow .2s, color .2s;
	cursor: pointer;
	font-family: Libre_Baskerville;
	margin-top: 10px;
}


@media (max-width: 500px) {
	h2 {
		font-size: 1.2rem;
	}
	.horizontal {
		flex-direction: column;
	}
	.yacht-charter {
		width: calc(100% - 40px);
	}

	.hero-action-buttons a, .hero-action-buttons button {
		padding: 10px 16px;
		font-size: .9rem;
	}

	.yachts-grid {
		row-gap: 2.4rem;
		margin: 2.4rem 0;
	}
}

.no-yachts-message {
	text-align: center;
	font-size: 1.2rem;
	color: #555;
	width: 100%;
	background-color: var(--main-content-background);
	padding: 10px;
}