/* EPS Utilities – pony listings and adverts. Colours follow the site design system. */

/* Listings ------------------------------------------------------------ */
.eps-ponies {
	display: grid;
	grid-template-columns: 1fr;
	gap: 32px;
}
.eps-ponies--with-filters {
	grid-template-columns: 240px 1fr;
}
@media (max-width: 1024px) {
	.eps-ponies--with-filters { grid-template-columns: 1fr; }
}

.eps-ponies__filter + .eps-ponies__filter { margin-top: 28px; }
.eps-ponies__filter h3 {
	margin: 0 0 10px;
	padding-bottom: 10px;
	border-bottom: 2px solid #f29110;
	font-size: 14px;
	font-weight: 900;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #1f1a17;
}
.eps-ponies__filter ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.eps-ponies__filter button {
	display: block;
	width: 100%;
	padding: 7px 0;
	border: 0;
	border-bottom: 1px solid #efe8e2;
	background: none;
	font: inherit;
	font-size: 15px;
	color: #2b2420;
	text-align: left;
	cursor: pointer;
}
.eps-ponies__filter button:hover,
.eps-ponies__filter button.is-active { color: #e86728; }
.eps-ponies__filter button.is-active { font-weight: 700; }
.eps-ponies__count { color: #7a6e66; font-weight: 400; }

.eps-ponies__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}
@media (max-width: 1024px) {
	.eps-ponies__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
	.eps-ponies__grid { grid-template-columns: 1fr; }
}

.eps-ponies__loading { padding: 40px 0; text-align: center; }
.eps-ponies__loading[hidden] { display: none; }
.eps-ponies__spinner {
	display: inline-block;
	width: 28px;
	height: 28px;
	border: 3px solid #e6ddd5;
	border-top-color: #f29110;
	border-radius: 50%;
	animation: eps-spin 0.8s linear infinite;
}
@keyframes eps-spin { to { transform: rotate(360deg); } }

.eps-ponies__empty { grid-column: 1 / -1; color: #7a6e66; }

.eps-pony-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid #e6ddd5;
	border-radius: 6px;
	background: #fff;
	color: #2b2420;
	text-decoration: none;
	transition: box-shadow 0.15s, transform 0.15s;
}
.eps-pony-card:hover {
	box-shadow: 0 12px 28px rgba(45, 26, 9, 0.14);
	transform: translateY(-2px);
	color: #e86728;
}
.eps-pony-card__image {
	display: block;
	aspect-ratio: 4 / 3;
	background-color: #f7f3ef;
	background-size: cover;
	background-position: center;
}
.eps-pony-card__image--placeholder { background-size: 50%; background-repeat: no-repeat; }
.eps-pony-card__name {
	padding: 14px 16px;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
	text-align: center;
}

/* Single advert --------------------------------------------------------- */
.eps-pony__top { display: grid; gap: 32px; }
.eps-pony__top--with-photos { grid-template-columns: 1fr 1fr; }
@media (max-width: 1024px) {
	.eps-pony__top--with-photos { grid-template-columns: 1fr; }
}

.eps-pony__photos {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
}
.eps-pony__photo { display: block; overflow: hidden; border-radius: 4px; }
.eps-pony__photo img { display: block; width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; }
.eps-pony__photo--main { grid-column: 1 / -1; }
.eps-pony__photo--main img { aspect-ratio: 4 / 3; }

.eps-pony__placed {
	margin: 0 0 12px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #e86728;
}
.eps-pony__overview { margin-bottom: 12px; }
.eps-pony__price { font-size: 22px; font-weight: 900; color: #1f1a17; }
.eps-pony__video { margin-top: 20px; aspect-ratio: 16 / 9; }
.eps-pony__video iframe { width: 100%; height: 100%; border: 0; border-radius: 4px; }

.eps-pony__description { margin-top: 32px; }

.eps-pony__tables { display: grid; gap: 32px; margin-top: 32px; }
.eps-pony__tables--two { grid-template-columns: 1fr 1fr; }
@media (max-width: 768px) {
	.eps-pony__tables--two { grid-template-columns: 1fr; }
}
.eps-pony__tables h3 {
	margin: 0 0 12px;
	padding-bottom: 10px;
	border-bottom: 2px solid #f29110;
	font-size: 14px;
	font-weight: 900;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #1f1a17;
}
.eps-pony__table { width: 100%; border-collapse: collapse; }
.eps-pony__table th,
.eps-pony__table td {
	padding: 8px 0;
	border-bottom: 1px solid #efe8e2;
	text-align: left;
	vertical-align: top;
	font-size: 15px;
}
.eps-pony__table th { width: 45%; padding-right: 16px; font-weight: 700; color: #2b2420; }
