.pye-archive {
	--pye-navy: #13294b;
	--pye-gold: #b8962f;
	--pye-border: #d9dee6;
	--pye-muted: #5b6577;
	--pye-bg-soft: #f4f6f9;
	color: var(--pye-navy);
}

/* ---------- Filter bar ---------- */
.pye-filters {
	background: #fff;
	border: 1px solid var(--pye-border);
	border-radius: 14px;
	padding: 26px 28px;
	box-shadow: 0 6px 24px rgba(19, 41, 75, 0.06);
	margin-bottom: 28px;
}

.pye-filters__title {
	margin: 0 0 18px;
	font-size: 1.7rem;
	font-weight: 800;
	color: var(--pye-navy);
}

.pye-filters__row {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	align-items: flex-end;
	margin-bottom: 16px;
}

.pye-filters__row:last-child {
	margin-bottom: 0;
}

/* Segmented toggle */
.pye-seg {
	display: inline-flex;
	border: 1px solid var(--pye-border);
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
}

.pye-seg__btn {
	appearance: none;
	border: 0;
	background: transparent;
	color: var(--pye-muted);
	font-weight: 600;
	font-size: 0.95rem;
	padding: 10px 22px;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.pye-seg__btn + .pye-seg__btn {
	border-left: 1px solid var(--pye-border);
}

.pye-seg__btn.is-active {
	background: var(--pye-navy);
	color: #fff;
}

/* Fields */
.pye-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1 1 200px;
	min-width: 0;
}

.pye-field--sm {
	flex: 0 1 160px;
}

.pye-field__label {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--pye-muted);
}

.pye-field__input {
	width: 100%;
	padding: 11px 14px;
	border: 1px solid var(--pye-border);
	border-radius: 8px;
	font-size: 1rem;
	background: #fbfcfe;
	color: var(--pye-navy);
}

.pye-field__input:focus {
	outline: none;
	border-color: var(--pye-navy);
	box-shadow: 0 0 0 3px rgba(19, 41, 75, 0.12);
}

.pye-filters__submit {
	appearance: none;
	border: 0;
	background: var(--pye-navy);
	color: #fff;
	font-weight: 700;
	font-size: 1rem;
	padding: 12px 26px;
	border-radius: 8px;
	cursor: pointer;
	transition: background 0.15s ease;
	margin-left: auto;
	margin-bottom: 10px;
}

.pye-filters__submit:hover {
	background: var(--pye-gold);
}

/* ---------- Results grid ---------- */
/* "Showing X–Y of Z yachts" under the filter bar */
.pye-count {
	margin: 0 0 20px;
	font-size: 0.95rem;
	font-weight: 500;
	color: var(--pye-muted);
}

.pye-count strong {
	color: var(--pye-navy);
	font-weight: 700;
}

.pye-grid {
	display: grid;
	grid-template-columns: repeat(var(--pye-cols, 3), minmax(0, 1fr));
	gap: 26px;
}

.pye-results.is-loading {
	opacity: 0.5;
	pointer-events: none;
	transition: opacity 0.15s ease;
}

/* Card */
.pye-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--pye-border);
	border-radius: 12px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	box-shadow: 0 4px 16px rgba(19, 41, 75, 0.06);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.pye-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 28px rgba(19, 41, 75, 0.14);
}

.pye-card__media {
	position: relative;
	aspect-ratio: 16 / 10;
	background: var(--pye-bg-soft);
	overflow: hidden;
}

/* Fill the media box completely (object-fit crops overflow). !important overrides the
   theme's global `img { height:auto !important }`, which otherwise leaves the photo short. */
.pye-card__img {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	display: block;
}

.pye-card__noimg {
	display: block;
	width: 100%;
	height: 100%;
	background: var(--pye-bg-soft);
}

.pye-card__body {
	padding: 20px 22px 16px;
	flex: 1 1 auto;
}

.pye-card__title {
	margin: 0 0 10px;
	font-size: 19px;
	font-weight: 700;
	line-height: 29px;
	color: #072c50;
}

.pye-card__loc {
	display: flex;
	align-items: center;
	gap: 7px;
	color: #64748b;
	font-size: 14px;
	font-weight: 500;
	line-height: 29px;
	margin-bottom: 8px;
}

.pye-card__pin {
	color: #64748b;
	flex: 0 0 auto;
}

.pye-card__callout {
	font-size: 14px;
	font-weight: 500;
	line-height: 29px;
	color: #64748b;
	margin-bottom: 8px;
}

.pye-card__price {
	font-size: 18px;
	font-weight: 700;
	line-height: 29px;
	color: #072c50;
}

.pye-card__footer {
	border-top: 1px solid var(--pye-border);
	background: var(--pye-bg-soft);
	padding: 16px;
	text-align: center;
}

.pye-card__logo {
	width: 120px;
	height: auto;
	display: inline-block;
}

/* Empty / error / load more */
.pye-empty,
.pye-error {
	text-align: center;
	color: var(--pye-muted);
	font-size: 1.05rem;
	padding: 40px 0;
}

.pye-error {
	color: #b3261e;
}

.pye-loadmore-wrap {
	text-align: center;
	margin-top: 32px;
}

.pye-loadmore {
	appearance: none;
	border: 1px solid var(--pye-navy);
	background: #fff;
	color: var(--pye-navy);
	font-weight: 700;
	font-size: 1rem;
	padding: 13px 38px;
	border-radius: 8px;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.pye-loadmore:hover {
	background: var(--pye-navy);
	color: #fff;
}

.pye-loadmore[disabled] {
	opacity: 0.6;
	cursor: default;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.pye-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.pye-filters__submit {
		margin-left: 0;
	}
}

@media (max-width: 560px) {
	.pye-grid {
		grid-template-columns: 1fr;
	}
	.pye-field,
	.pye-field--sm {
		flex: 1 1 100%;
	}
}
