/* Eurorennen Listing Designer — cards, grids, filter bar, section headings.
   All selectors are prefixed with "body" so they win over older plugin CSS. */

:root{
	--eurl-ink:#14161a;
	--eurl-soft:#5b6068;
	--eurl-mute:#8a8f98;
	--eurl-line:#e6e8eb;
	--eurl-surface:#f5f6f7;
	--eurl-accent:var(--amp-accent,#c8102e);
	--eurl-radius:16px;
	--eurl-ratio:4 / 3;
	--eurl-cols:5;
}

/* ================= Section headings (home + listing pages) ================= */
body.eurld-on .amp-section-title{font-size:clamp(26px,2.5vw,36px);line-height:1.1;font-weight:800;letter-spacing:-.025em;color:var(--eurl-ink)}
body.eurld-on .amp-section-sub{font-size:15px;color:var(--eurl-soft)}
body.eurld-on .eurht-teaser-link{
	display:inline-flex;align-items:center;gap:6px;padding:9px 16px;border:1px solid var(--eurl-line);border-radius:999px;
	font-size:13px;font-weight:700;color:var(--eurl-ink);text-decoration:none;white-space:nowrap;background:#fff;
	transition:border-color .15s ease,color .15s ease,background .15s ease;
}
body.eurld-on .eurht-teaser-link:hover{border-color:var(--eurl-ink);background:var(--eurl-ink);color:#fff}

/* Homepage sections: a little more air between them */
body.eurld-on .eurl-home{margin-top:64px!important;margin-bottom:0!important}
body.eurld-on .eurl-home + .eurl-home{margin-top:72px!important;margin-bottom:56px!important}
body.eurld-on .eurl-home .eurht-teaser-head{margin-bottom:24px!important}
@media (max-width:700px){
	body.eurld-on .eurl-home{margin-top:44px!important}
	body.eurld-on .eurl-home + .eurl-home{margin-top:48px!important;margin-bottom:40px!important}
	body.eurld-on .eurl-home .eurht-teaser-head{margin-bottom:18px!important}
}

/* ================= Card ================= */
body.eurld-on .amp-card{
	display:flex!important;flex-direction:column;background:transparent!important;border:0!important;border-radius:0!important;
	box-shadow:none!important;overflow:visible!important;color:inherit;text-decoration:none!important;transform:none!important;
	-webkit-tap-highlight-color:transparent;
}
body.eurld-on .amp-card .amp-card-img{
	position:relative;display:block;width:100%;height:auto!important;aspect-ratio:var(--eurl-ratio);
	border-radius:var(--eurl-radius);background-color:#eceef0;background-size:cover;background-position:center;overflow:hidden;
	transition:box-shadow .25s ease,transform .25s ease;
}
body.eurld-on .amp-card .amp-card-img::after{
	content:"";position:absolute;inset:0;border-radius:inherit;box-shadow:inset 0 0 0 1px rgba(20,22,26,.06);pointer-events:none;
}
body.eurld-on .amp-card:hover .amp-card-img,
body.eurld-on .amp-card:focus-visible .amp-card-img{transform:translateY(-4px);box-shadow:0 16px 32px rgba(20,22,26,.18)}
body.eurld-on .amp-card:focus-visible{outline:2px solid var(--eurl-ink);outline-offset:4px;border-radius:var(--eurl-radius)}

body.eurld-on .amp-card .amp-badge{
	position:absolute;top:12px;left:12px;z-index:1;padding:6px 11px;border-radius:999px;
	background:rgba(255,255,255,.94);color:var(--eurl-ink);font-size:11px;line-height:1;font-weight:700;letter-spacing:.06em;text-transform:uppercase;
	box-shadow:0 2px 8px rgba(20,22,26,.12);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);
}
body.eurld-hide-brand .amp-card .amp-badge{display:none!important}

body.eurld-on .amp-card .amp-card-body{
	display:flex!important;flex-direction:column;gap:3px;padding:14px 2px 0!important;
}
body.eurld-on .amp-card .amp-card-title{
	order:1;margin:0!important;color:var(--eurl-ink)!important;font-size:15.5px!important;line-height:1.3!important;font-weight:600!important;letter-spacing:-.005em;
	display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;transition:color .15s ease;
}
body.eurld-on .amp-card:hover .amp-card-title{color:var(--eurl-accent)!important}
body.eurld-on .amp-card .amp-card-price{
	order:2;margin:2px 0 0!important;color:var(--eurl-ink);font-size:18px!important;line-height:1.25;font-weight:800;letter-spacing:-.015em;font-variant-numeric:tabular-nums;
}
body.eurld-on .amp-card .amp-card-meta{
	order:3;display:flex!important;flex:none;flex-wrap:wrap;gap:0!important;margin-top:3px;font-size:13px!important;line-height:1.4!important;max-height:1.4em;overflow:hidden;color:var(--eurl-soft);
}
body.eurld-on .amp-card .amp-card-meta span{background:none!important;padding:0!important;border-radius:0!important;font-size:inherit}
body.eurld-on .amp-card .amp-card-meta span + span::before{content:"\00b7";margin:0 7px;color:#b4b8be}
body.eurld-hide-meta .amp-card .amp-card-meta{display:none!important}
body.eurld-on .amp-card .amp-card-location{
	order:4;display:flex;align-items:center;gap:5px;margin:2px 0 0!important;font-size:12.5px!important;line-height:1.35;color:var(--eurl-mute);
}
body.eurld-on .amp-card .amp-card-location[data-eurl]::before{
	content:"";flex:0 0 12px;width:12px;height:12px;background:currentColor;
	-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11.2A7 7 0 0 1 19 9.8C19 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.8' r='2.4'/%3E%3C/svg%3E") center/contain no-repeat;
	        mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11.2A7 7 0 0 1 19 9.8C19 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.8' r='2.4'/%3E%3C/svg%3E") center/contain no-repeat;
}
body.eurld-hide-loc .amp-card .amp-card-location{display:none!important}

/* ================= Grid ================= */
body.eurld-on .amp-grid{
	display:grid!important;grid-template-columns:repeat(var(--eurl-cols,5),minmax(0,1fr))!important;gap:36px 22px!important;
}
body.eurld-on .amp-loading,
body.eurld-on .amp-empty{
	grid-column:1 / -1;display:flex;align-items:center;justify-content:center;gap:12px;padding:64px 20px;
	border-radius:var(--eurl-radius);background:var(--eurl-surface);color:var(--eurl-soft);font-size:15px;text-align:center;
}
body.eurld-on .amp-loading::before{
	content:"";width:18px;height:18px;border:2px solid #cfd3d8;border-top-color:var(--eurl-ink);border-radius:50%;animation:eurlSpin .7s linear infinite;
}
@keyframes eurlSpin{to{transform:rotate(360deg)}}

/* Homepage rows ("Cars for Sale" / "Parts for Sale") */
body.eurld-on .eurl-row{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:26px 22px}

/* Load more + result count */
body.eurld-on .amp-results-meta{margin:2px 2px 18px;font-size:14px;font-weight:600;color:var(--eurl-soft)}
body.eurld-on .amp-load-more-wrap{margin-top:40px}
body.eurld-on .amp-load-more-wrap .amp-btn{
	padding:14px 30px;border:1px solid var(--eurl-ink);border-radius:999px;background:#fff;color:var(--eurl-ink);font-size:14px;font-weight:700;
	transition:background .15s ease,color .15s ease;
}
body.eurld-on .amp-load-more-wrap .amp-btn:hover{background:var(--eurl-ink);color:#fff;transform:none;opacity:1}

/* ================= Filter bar (looks only — layout/visibility is left to other plugins) ================= */
body.eurld-on .amp-marketplace > .amp-filters,
body.eurld-on .eurp-marketplace > .eurp-filters{
	background:var(--eurl-surface);border:0;border-radius:20px;padding:20px;margin:20px 0 24px;gap:14px;box-shadow:none;
}
body.eurld-on .amp-filter-group label{font-size:11px;letter-spacing:.08em;text-transform:uppercase;font-weight:700;color:var(--eurl-mute)}
body.eurld-on .amp-filter-group select,
body.eurld-on .amp-filter-group input{
	height:46px;padding:0 14px;border:0!important;border-radius:12px;background-color:#fff;font-size:14px;color:var(--eurl-ink);
	box-shadow:0 0 0 1px var(--eurl-line);transition:box-shadow .15s ease;
}
body.eurld-on .amp-filter-group select{
	-webkit-appearance:none;appearance:none;padding-right:36px;cursor:pointer;
	background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235b6068' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat:no-repeat;background-position:right 14px center;
}
body.eurld-on .amp-filter-group select:focus,
body.eurld-on .amp-filter-group input:focus{outline:0;background-color:#fff;box-shadow:0 0 0 2px var(--eurl-ink)}
body.eurld-on .amp-filter-group input::placeholder{color:#a0a5ad}
body.eurld-on .amp-filters .amp-btn-primary,
body.eurld-on .eurp-filters .amp-btn-primary{height:46px;padding:0 26px;border-radius:12px;font-size:14px;font-weight:700;box-shadow:none}
body.eurld-on .amp-filters .amp-btn-outline,
body.eurld-on .eurp-filters .amp-btn-outline{height:46px;padding:0 14px;border:0;background:transparent;color:var(--eurl-soft);font-size:14px;font-weight:600;text-decoration:underline;text-underline-offset:3px}
body.eurld-on .amp-filters .amp-btn-outline:hover,
body.eurld-on .eurp-filters .amp-btn-outline:hover{color:var(--eurl-ink);transform:none}
body.eurld-on .eur-filter-toggle{border-radius:14px;border-color:var(--eurl-line);background:#fff}

/* ================= Responsive ================= */
@media (max-width:1200px){
	body.eurld-on .amp-grid{grid-template-columns:repeat(min(var(--eurl-cols,5),3),minmax(0,1fr))!important}
}
@media (max-width:900px){
	body.eurld-on .amp-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:28px 16px!important}
	body.eurld-on .eurl-row{grid-template-columns:repeat(4,minmax(0,1fr));gap:22px 14px}
	body.eurld-on .eurl-row > :nth-child(n+5){display:none}
}
@media (max-width:700px){
	body.eurld-on .amp-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:24px 12px!important}
	body.eurld-on .eurl-row{grid-template-columns:repeat(2,minmax(0,1fr))}
	body.eurld-on .amp-card .amp-card-img{border-radius:14px}
	body.eurld-on .amp-card .amp-card-body{padding:11px 1px 0!important}
	body.eurld-on .amp-card .amp-card-title{font-size:14px!important}
	body.eurld-on .amp-card .amp-card-price{font-size:16px!important}
	body.eurld-on .amp-card .amp-card-meta{font-size:12px!important}
	body.eurld-on .amp-card .amp-card-meta span + span::before{margin:0 5px}
	body.eurld-on .amp-card .amp-card-location{font-size:11.5px!important}
	body.eurld-on .amp-card .amp-badge{top:8px;left:8px;padding:5px 8px;font-size:10px}
	body.eurld-on .amp-filter-group select,
	body.eurld-on .amp-filter-group input{height:42px!important;padding:0 12px!important;font-size:14px!important}
	body.eurld-on .amp-marketplace > .amp-filters,
	body.eurld-on .eurp-marketplace > .eurp-filters{padding:16px!important;border-radius:16px}
	body.eurld-on .eurht-teaser-link{padding:7px 13px;font-size:12px}
}
@media (hover:none){
	body.eurld-on .amp-card:hover .amp-card-img{transform:none;box-shadow:none}
}
@media (prefers-reduced-motion:reduce){
	body.eurld-on .amp-card .amp-card-img{transition:none}
	body.eurld-on .amp-card:hover .amp-card-img{transform:none}
	body.eurld-on .amp-loading::before{animation:none}
}
