/* Avantimoto components. Tokens can be overridden by the theme. */
:root {
	--am-ink: #1c2430;
	--am-ink-2: #3a4553;
	--am-muted: #5e6875;
	--am-bg: #f4f6f8;
	--am-paper: #ffffff;
	--am-line: #d9dde3;
	--am-line-2: #e9ecf0;
	--am-blue: #1d47b8;
	--am-blue-ink: #133283;
	--am-blue-tint: #e8eefb;
	--am-amber: #f2a900;
	--am-amber-tint: #fff4d6;
	--am-amber-ink: #4a3500;
	--am-green: #1e7d47;
	--am-green-tint: #e3f3ea;
	--am-red: #b72c2c;
	--am-red-tint: #fbe9e9;
	--am-radius: 6px;
	--am-font: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--am-font-cond: "Barlow Semi Condensed", "Barlow", system-ui, sans-serif;
	--am-wrap: 1240px;
}

.am-wrap { max-width: var(--am-wrap); margin: 0 auto; padding: 0 20px; }
.am-noscroll { overflow: hidden; }
.am-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
[hidden] { display: none !important; }

/* ---------- Buttons ---------- */
.am-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	min-height: 44px; padding: 0 18px; border-radius: var(--am-radius);
	border: 1px solid var(--am-line); background: var(--am-paper); color: var(--am-ink);
	font: 600 15px/1 var(--am-font); text-decoration: none; cursor: pointer;
	transition: background-color .15s, border-color .15s, color .15s;
}
.am-btn:hover { border-color: var(--am-ink-2); }
.am-btn:focus-visible, .am-link-btn:focus-visible, .am-fav:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
	outline: 3px solid var(--am-amber); outline-offset: 2px;
}
.am-btn--primary { background: var(--am-blue); border-color: var(--am-blue); color: #fff; }
.am-btn--primary:hover { background: var(--am-blue-ink); border-color: var(--am-blue-ink); color: #fff; }
.am-btn--finance { background: var(--am-amber); border-color: var(--am-amber); color: var(--am-amber-ink); }
.am-btn--finance:hover { background: #dc9a00; border-color: #dc9a00; color: var(--am-amber-ink); }
.am-btn--ghost { background: transparent; }
.am-btn--block { display: flex; width: 100%; }
.am-btn--lg { min-height: 52px; padding: 0 26px; font-size: 17px; }
.am-btn[disabled] { opacity: .6; cursor: progress; }
.am-link-btn { background: none; border: 0; padding: 4px 0; color: var(--am-blue); font: 600 14px var(--am-font); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.am-link-btn.is-active { color: var(--am-red); }
.am-link-btn.is-danger { color: var(--am-red); }

/* ---------- Form controls ---------- */
.am-form, .am-filters, .am-hero-search, .am-lead, .am-dialog, .am-calc { font-family: var(--am-font); color: var(--am-ink); }
.am-field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; font-size: 14px; }
.am-field > span:first-child { font-weight: 600; }
.am-field em, legend em { font-style: normal; color: var(--am-muted); font-weight: 400; }
.am-field input, .am-field select, .am-field textarea,
.am-f input[type=text], .am-f input[type=search], .am-f select,
.am-inline-form select {
	width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid var(--am-line); border-radius: var(--am-radius);
	background: var(--am-paper); color: var(--am-ink); font: 16px/1.3 var(--am-font); box-sizing: border-box;
}
.am-field textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.am-field select:disabled, .am-f select:disabled { background: var(--am-line-2); color: var(--am-muted); }
.am-input-unit { position: relative; display: block; }
.am-input-unit em { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--am-muted); pointer-events: none; font-style: normal; }
.am-input-unit input { padding-right: 46px; }
.am-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.4; cursor: pointer; margin: 0 0 8px; }
.am-check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--am-blue); flex: none; }
.am-checks { display: flex; flex-wrap: wrap; gap: 6px; }
.am-checks .am-check { margin: 0; }
.am-f .am-checks:not(.am-checks--stack) .am-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.am-f .am-checks:not(.am-checks--stack) .am-check span {
	display: inline-block; padding: 7px 11px; border: 1px solid var(--am-line); border-radius: 999px; background: var(--am-paper); font-size: 14px;
}
.am-f .am-checks:not(.am-checks--stack) .am-check input:checked + span { background: var(--am-blue-tint); border-color: var(--am-blue); color: var(--am-blue-ink); font-weight: 600; }
.am-f .am-checks:not(.am-checks--stack) .am-check input:focus-visible + span { outline: 3px solid var(--am-amber); outline-offset: 1px; }
.am-checks--stack { flex-direction: column; gap: 8px; }
.am-checks--grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 18px; }
.am-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 18px; }

.am-seg { display: inline-flex; padding: 3px; background: var(--am-line-2); border-radius: 8px; margin-bottom: 16px; }
.am-seg label { cursor: pointer; }
.am-seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.am-seg span { display: block; padding: 8px 14px; border-radius: 6px; font-weight: 600; font-size: 14px; color: var(--am-ink-2); }
.am-seg input:checked + span { background: var(--am-paper); color: var(--am-ink); box-shadow: 0 1px 2px rgba(28, 36, 48, .16); }
.am-seg input:focus-visible + span { outline: 3px solid var(--am-amber); }
.am-seg--small span { padding: 6px 12px; font-size: 13px; }

.am-fine { font-size: 13px; color: var(--am-muted); line-height: 1.5; }
.am-alert { padding: 12px 16px; border-radius: var(--am-radius); margin: 0 0 16px; font: 15px/1.45 var(--am-font); border: 1px solid; }
.am-alert--success { background: var(--am-green-tint); border-color: #a9d8bc; color: #134a2b; }
.am-alert--error { background: var(--am-red-tint); border-color: #eab3b3; color: #7d1d1d; }
.am-alert--info { background: var(--am-blue-tint); border-color: #b9c8ef; color: var(--am-blue-ink); }

/* ---------- Breadcrumbs ---------- */
.am-crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 10px; font: 14px var(--am-font); color: var(--am-muted); }
.am-crumbs a { color: var(--am-ink-2); text-decoration: none; }
.am-crumbs a:hover { text-decoration: underline; }
.am-crumbs > * + *::before { content: "/"; margin-right: 6px; color: var(--am-line); }

/* ---------- Spec chips, price, rate ---------- */
.am-specs { display: flex; flex-wrap: wrap; gap: 2px 14px; margin: 6px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--am-ink-2); }
.am-specs li { position: relative; }
.am-specs li + li::before { content: ""; position: absolute; left: -8px; top: 50%; width: 3px; height: 3px; border-radius: 50%; background: var(--am-muted); }
.am-price { margin: 0; font: 700 22px/1.1 var(--am-font-cond); color: var(--am-ink); white-space: nowrap; }
.am-price small { display: block; font: 400 13px var(--am-font); color: var(--am-muted); margin-top: 2px; white-space: normal; }
.am-rate {
	display: inline-flex; align-items: center; margin-top: 8px; padding: 4px 9px; border-radius: 4px;
	background: var(--am-amber-tint); border-left: 4px solid var(--am-amber); color: var(--am-amber-ink);
	font: 600 13px var(--am-font); text-decoration: none; white-space: nowrap;
}
.am-rate:hover { background: #ffe9a8; }
.am-rate--big { display: flex; padding: 10px 12px; font-size: 15px; margin: 14px 0 0; }
.am-tag { display: inline-block; padding: 1px 6px; border: 1px solid var(--am-line); border-radius: 4px; font-size: 12px; color: var(--am-ink-2); margin-left: 6px; }

/* ---------- Cards ---------- */
.am-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.am-card { position: relative; font-family: var(--am-font); color: var(--am-ink); }
.am-card__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--am-radius); background: var(--am-line-2); }
.am-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.am-card__photos { position: absolute; right: 8px; bottom: 8px; padding: 2px 7px; border-radius: 4px; background: rgba(28, 36, 48, .72); color: #fff; font-size: 12px; }
.am-card__flag { position: absolute; left: 8px; top: 8px; padding: 3px 8px; border-radius: 4px; background: var(--am-amber); color: var(--am-amber-ink); font-size: 12px; font-weight: 700; }
.am-card__flag--res { background: #5e6875; color: #fff; }
.am-price__from { font: 400 14px var(--am-font); color: var(--am-muted); }
.am-rent-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.am-rent-table th, .am-rent-table td { padding: 9px 10px; border-bottom: 1px solid var(--am-line-2); text-align: left; }
.am-rent-table th { color: var(--am-muted); font-weight: 600; }
.am-rent-table tr.is-min td { background: var(--am-blue-tint); font-weight: 600; }
.am-reserved-note { margin: 12px 0 0; padding: 8px 12px; border-radius: 6px; background: var(--am-line-2); font-size: 14px; }
.am-equip--text { columns: 2 260px; }
.am-equip--text.is-collapsed li:nth-child(n+31) { display: none; }
.am-card__flag--rent { background: var(--am-blue); color: #fff; }
.am-card__title { margin: 10px 0 0; font: 600 17px/1.25 var(--am-font); }
.am-card__title a { color: inherit; text-decoration: none; }
.am-card__title a::after { content: ""; position: absolute; inset: 0; }
.am-card__title a:hover { color: var(--am-blue); }
.am-card__place { margin: 6px 0 0; font-size: 13px; color: var(--am-muted); }
.am-card--grid .am-card__side { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: 8px; }
.am-card--grid .am-price small { display: inline; margin-left: 4px; }
.am-fav {
	position: relative; z-index: 2; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
	border: 1px solid var(--am-line); background: var(--am-paper); cursor: pointer; padding: 0;
}
.am-fav svg { fill: none; stroke: var(--am-ink-2); stroke-width: 1.8; }
.am-fav.is-active svg { fill: var(--am-red); stroke: var(--am-red); }
.am-card--grid .am-fav { position: absolute; top: 8px; right: 8px; }
.am-rate, .am-card__place .am-tag { position: relative; z-index: 2; }

/* Row layout (result lists) */
.am-list { display: flex; flex-direction: column; border-top: 1px solid var(--am-line); }
.am-card--row {
	display: grid; grid-template-columns: 240px 1fr auto; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--am-line);
}
.am-card--row.is-featured { background: linear-gradient(90deg, var(--am-amber-tint), transparent 60%); padding-left: 10px; margin-left: -10px; border-left: 4px solid var(--am-amber); }
.am-card--row .am-card__title { margin-top: 2px; font-size: 19px; }
.am-card--row .am-card__side { display: flex; flex-direction: column; align-items: flex-end; text-align: right; min-width: 170px; }
.am-card--row .am-price { font-size: 26px; }
.am-card--row .am-fav { margin-top: auto; }

/* ---------- Search page ---------- */
.am-search__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin: 4px 0 18px; }
.am-search__head h1 { margin: 0; font: 700 32px/1.1 var(--am-font-cond); color: var(--am-ink); }
.am-search__count { margin: 0; color: var(--am-muted); font: 16px var(--am-font); }
.am-search__layout { display: grid; grid-template-columns: 290px 1fr; gap: 32px; align-items: start; }
.am-filters { background: var(--am-paper); border: 1px solid var(--am-line); border-radius: 8px; padding: 18px; position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; }
.am-filters__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.am-filters__head h2 { margin: 0; font: 700 20px var(--am-font-cond); }
.am-filters__head a { font-size: 14px; color: var(--am-blue); }
.am-filters__close { display: none; }
.am-f { margin: 0 0 14px; padding: 0; border: 0; min-width: 0; }
.am-f > label, .am-f > legend { display: block; margin: 0 0 6px; padding: 0; font: 600 14px var(--am-font); }
.am-range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.am-range legend { grid-column: 1 / -1; float: left; width: 100%; }
.am-more { border-top: 1px solid var(--am-line-2); padding-top: 12px; margin: 4px 0 14px; }
.am-more summary { cursor: pointer; font-weight: 600; color: var(--am-blue); margin-bottom: 12px; }
.am-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 8px; }
.am-toolbar__filters { display: none; }
.am-sort { display: flex; align-items: center; gap: 8px; margin-right: auto; font: 14px var(--am-font); }
.am-sort select { min-height: 40px; padding: 6px 10px; border: 1px solid var(--am-line); border-radius: var(--am-radius); font: 15px var(--am-font); background: var(--am-paper); }
.am-model-links { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 20px; padding: 0; list-style: none; }
.am-model-links a { display: inline-block; padding: 6px 12px; border: 1px solid var(--am-line); border-radius: 999px; background: var(--am-paper); color: var(--am-ink); text-decoration: none; font: 14px var(--am-font); }
.am-model-links a:hover { border-color: var(--am-blue); color: var(--am-blue); }
.am-model-links em { font-style: normal; color: var(--am-muted); margin-left: 3px; }
.am-rent-intro { margin: 0 0 20px; padding: 14px 18px; border-radius: 8px; background: var(--am-blue-tint); color: var(--am-blue-ink); font: 15px/1.5 var(--am-font); max-width: 80ch; }
.am-rent-intro p { margin: 0; }
.am-seller-box { padding: 14px 16px; border-left: 4px solid var(--am-blue); background: var(--am-paper); margin-bottom: 20px; font: 15px/1.5 var(--am-font); }
.am-seller-box p { margin: 0 0 4px; }

.am-pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 28px 0; font: 600 15px var(--am-font); }
.am-pager a, .am-pager span { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 10px; border-radius: var(--am-radius); text-decoration: none; color: var(--am-ink); border: 1px solid var(--am-line); background: var(--am-paper); box-sizing: border-box; }
.am-pager .is-current { background: var(--am-ink); border-color: var(--am-ink); color: #fff; }
.am-pager__gap { border: 0 !important; background: none !important; }

.am-empty { padding: 32px 0; font: 16px/1.5 var(--am-font); max-width: 60ch; }
.am-empty h2 { font: 700 24px var(--am-font-cond); margin: 0 0 8px; }

.am-finance-strip { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin: 28px 0; padding: 20px 22px; background: var(--am-ink); color: #fff; border-radius: 8px; font-family: var(--am-font); }
.am-finance-strip h2 { margin: 0 0 4px; font: 700 22px var(--am-font-cond); color: #fff; }
.am-finance-strip p { margin: 0; color: #c7cdd6; max-width: 60ch; }

/* ---------- Single listing ---------- */
.am-single__layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 36px; align-items: start; }
.am-gallery__stage { position: relative; margin: 0; aspect-ratio: 4 / 3; background: #10151c; border-radius: 8px; overflow: hidden; }
.am-gallery__stage img { width: 100%; height: 100%; object-fit: contain; display: block; cursor: zoom-in; }
.am-gallery__stage figcaption { position: absolute; right: 12px; bottom: 12px; padding: 3px 9px; border-radius: 4px; background: rgba(0, 0, 0, .6); color: #fff; font: 13px var(--am-font); }
.am-gallery__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: var(--am-ink); font-size: 28px; line-height: 1; cursor: pointer; }
.am-gallery__nav--prev { left: 12px; }
.am-gallery__nav--next { right: 12px; }
.am-gallery__thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0 2px; margin: 0; list-style: none; scrollbar-width: thin; }
.am-gallery__thumbs button { padding: 0; border: 2px solid transparent; border-radius: 5px; overflow: hidden; cursor: pointer; background: none; display: block; }
.am-gallery__thumbs button[aria-current] { border-color: var(--am-blue); }
.am-gallery__thumbs img { display: block; width: 96px; height: 72px; object-fit: cover; }
.am-single__head h1 { margin: 22px 0 2px; font: 700 34px/1.1 var(--am-font-cond); color: var(--am-ink); }
.am-single__version { margin: 0; color: var(--am-muted); font: 17px var(--am-font); }
.am-keyspecs { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 1px; margin: 20px 0 0; background: var(--am-line); border: 1px solid var(--am-line); border-radius: 8px; overflow: hidden; }
.am-keyspecs div { background: var(--am-paper); padding: 12px 14px; }
.am-keyspecs dt { font: 13px var(--am-font); color: var(--am-muted); }
.am-keyspecs dd { margin: 2px 0 0; font: 600 17px var(--am-font); color: var(--am-ink); }
.am-section { margin: 36px 0 0; font: 16px/1.6 var(--am-font); color: var(--am-ink); }
.am-section > h2, .am-finance h2 { margin: 0 0 14px; font: 700 24px var(--am-font-cond); }
.am-desc { max-width: 72ch; white-space: normal; }
.am-params__title { margin: 22px 0 6px; font: 600 15px var(--am-font); color: var(--am-ink-2); }
.am-params { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin: 0; }
.am-params div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--am-line-2); }
.am-params dt { color: var(--am-muted); }
.am-params dd { margin: 0; font-weight: 600; text-align: right; }
.am-equip { columns: 3 200px; column-gap: 28px; margin: 0; padding: 0; list-style: none; }
.am-equip li { break-inside: avoid; padding: 4px 0 4px 22px; position: relative; }
.am-equip li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 10px; height: 6px; border-left: 2px solid var(--am-green); border-bottom: 2px solid var(--am-green); transform: rotate(-45deg); }
.am-video { position: relative; aspect-ratio: 16 / 9; }
.am-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 8px; }
.am-history code { font-size: 15px; letter-spacing: .04em; }

.am-single__side { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 16px; font-family: var(--am-font); }
.am-buybox { padding: 20px; background: var(--am-paper); border: 1px solid var(--am-line); border-radius: 8px; }
.am-buybox__price { margin: 0; font: 700 38px/1 var(--am-font-cond); color: var(--am-ink); }
.am-buybox__price small { font: 600 18px var(--am-font); color: var(--am-muted); }
.am-rent-incl { margin: 12px 0 0; padding: 8px 12px; border-radius: 6px; background: var(--am-blue-tint); color: var(--am-blue-ink); font-size: 14px; font-weight: 600; }
.am-lead--wide { max-width: 760px; }
.am-buybox__meta { margin: 6px 0 0; color: var(--am-muted); font-size: 14px; }
.am-buybox .am-btn { margin-top: 10px; }
.am-buybox__actions { display: flex; justify-content: space-between; margin-top: 14px; }
.am-buybox__id { margin: 12px 0 0; font-size: 12px; color: var(--am-muted); }
.am-eval { margin: 14px 0 0; padding: 8px 12px; border-radius: 6px; font-size: 14px; }
.am-eval strong { display: block; }
.am-eval span { color: var(--am-ink-2); }
.am-eval--good { background: var(--am-green-tint); color: var(--am-green); }
.am-eval--fair { background: var(--am-line-2); color: var(--am-ink); }
.am-eval--high { background: var(--am-red-tint); color: var(--am-red); }
.am-seller { margin: 18px 0 6px; padding-top: 16px; border-top: 1px solid var(--am-line-2); }
.am-seller p { margin: 0 0 2px; }
.am-seller__name { font-weight: 700; font-size: 17px; }
.am-seller__name a { color: var(--am-ink); text-decoration: none; }
.am-seller__name a:hover { color: var(--am-blue); }
.am-seller__type, .am-seller__place { font-size: 14px; color: var(--am-muted); }
.am-ownerbox, .am-safety { padding: 16px 20px; border-radius: 8px; background: var(--am-paper); border: 1px solid var(--am-line); font-size: 14px; line-height: 1.5; }
.am-safety h3 { margin: 0 0 4px; font: 600 15px var(--am-font); }
.am-safety p { margin: 0; color: var(--am-ink-2); }
.am-mobile-cta { display: none; }

/* ---------- Finance ---------- */
.am-finance { margin: 40px 0 0; padding: 26px; border-radius: 10px; background: var(--am-paper); border: 1px solid var(--am-line); border-top: 6px solid var(--am-amber); font-family: var(--am-font); color: var(--am-ink); }
.am-finance__intro p { margin: 0 0 18px; color: var(--am-ink-2); max-width: 64ch; }
.am-finance__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.am-calc__row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; font-size: 14px; font-weight: 600; }
.am-calc__row > span:first-child { display: flex; justify-content: space-between; }
.am-calc__row output { font: 700 15px var(--am-font); }
.am-calc__row input[type=text] { min-height: 44px; padding: 8px 46px 8px 12px; border: 1px solid var(--am-line); border-radius: var(--am-radius); font: 600 17px var(--am-font); width: 100%; box-sizing: border-box; }
.am-calc input[type=range] { width: 100%; accent-color: var(--am-amber); }
.am-calc__result { display: flex; flex-direction: column; padding: 16px; background: var(--am-amber-tint); border-radius: 8px; }
.am-calc__result span { font-size: 14px; color: var(--am-amber-ink); }
.am-calc__result strong { font: 700 40px/1.1 var(--am-font-cond); color: var(--am-ink); }
.am-calc__result small { font-size: 14px; color: var(--am-amber-ink); }
.am-lead h3 { margin: 0 0 12px; font: 700 19px var(--am-font-cond); }
.am-lead__status { min-height: 1.4em; margin: 10px 0 0; font-size: 14px; }
.am-lead__status.is-ok { color: var(--am-green); font-weight: 600; }
.am-lead__status.is-error { color: var(--am-red); font-weight: 600; }
.am-check--consent { font-size: 12.5px; color: var(--am-ink-2); }

/* ---------- Dialogs ---------- */
.am-dialog { width: min(560px, calc(100vw - 24px)); padding: 0; border: 0; border-radius: 10px; box-shadow: 0 20px 60px rgba(16, 21, 28, .35); }
.am-dialog::backdrop, .am-lightbox::backdrop { background: rgba(16, 21, 28, .6); }
.am-dialog__body { padding: 24px; }
.am-dialog__body h2 { margin: 0 0 16px; font: 700 22px var(--am-font-cond); }
.am-dialog__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }
.am-lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #0b0f14; }
.am-lightbox img { width: 100%; height: 100%; object-fit: contain; }
.am-lightbox__close { position: absolute; top: 14px; right: 14px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); font-size: 28px; cursor: pointer; }

/* ---------- Auth, dashboard, checkout ---------- */
.am-auth { max-width: 460px; margin: 0 auto; font-family: var(--am-font); }
.am-auth__intro { font-size: 17px; }
.am-tabs { display: flex; border-bottom: 1px solid var(--am-line); margin-bottom: 20px; }
.am-tabs a { padding: 10px 16px; margin-bottom: -1px; border-bottom: 3px solid transparent; color: var(--am-ink-2); font-weight: 600; text-decoration: none; }
.am-tabs a.is-active { border-color: var(--am-blue); color: var(--am-ink); }

.am-dash { font-family: var(--am-font); color: var(--am-ink); }
.am-dash__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.am-dash__head h1 { margin: 0; font: 700 30px var(--am-font-cond); }
.am-dash__head p { margin: 4px 0 0; color: var(--am-muted); font-size: 14px; }
.am-dash__tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--am-line); margin-bottom: 20px; }
.am-dash__tabs a { padding: 10px 14px; margin-bottom: -1px; border-bottom: 3px solid transparent; color: var(--am-ink-2); font-weight: 600; text-decoration: none; white-space: nowrap; }
.am-dash__tabs a.is-active { border-color: var(--am-blue); color: var(--am-ink); }
.am-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--am-red); color: #fff; font-size: 12px; box-sizing: border-box; }
.am-mylist, .am-threads, .am-saved { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--am-line); }
.am-mylist__item { display: grid; grid-template-columns: 120px 1fr; gap: 6px 16px; padding: 14px 0; border-bottom: 1px solid var(--am-line); }
.am-mylist__item img { width: 120px; height: 90px; object-fit: cover; border-radius: 5px; grid-row: span 2; }
.am-mylist__item h3 { margin: 0; font-size: 17px; }
.am-mylist__item h3 a { color: var(--am-ink); }
.am-mylist__meta, .am-mylist__stats { margin: 4px 0 0; font-size: 14px; color: var(--am-ink-2); }
.am-mylist__stats { color: var(--am-muted); font-size: 13px; }
.am-mylist__actions { grid-column: 2; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.am-inline-form { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
.am-inline-form select { min-height: 44px; width: auto; }
.am-status { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 12px; font-weight: 700; margin-right: 6px; background: var(--am-line-2); }
.am-status--publish { background: var(--am-green-tint); color: var(--am-green); }
.am-status--am_pending_payment { background: var(--am-amber-tint); color: var(--am-amber-ink); }
.am-status--am_expired, .am-status--am_rejected { background: var(--am-red-tint); color: var(--am-red); }
.am-threads a { display: grid; grid-template-columns: 80px 1fr auto auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--am-line); color: var(--am-ink); text-decoration: none; }
.am-threads img { width: 80px; height: 60px; object-fit: cover; border-radius: 4px; }
.am-threads .is-unread strong { color: var(--am-blue); }
.am-threads time { font-size: 13px; color: var(--am-muted); }
.am-thread__head h2 { margin: 0; font: 700 22px var(--am-font-cond); }
.am-thread__msgs { list-style: none; margin: 18px 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.am-msg { max-width: 75%; padding: 10px 14px; border-radius: 10px; background: var(--am-line-2); }
.am-msg.is-mine { align-self: flex-end; background: var(--am-blue-tint); }
.am-msg p { margin: 0; }
.am-msg time { display: block; margin-top: 4px; font-size: 12px; color: var(--am-muted); }
.am-saved li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 12px 0; border-bottom: 1px solid var(--am-line); }
.am-saved li > a { margin-right: auto; }
.am-table-wrap { overflow-x: auto; }
.am-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.am-table th, .am-table td { padding: 10px 8px; border-bottom: 1px solid var(--am-line-2); text-align: left; vertical-align: top; }
.am-table th { font-weight: 600; color: var(--am-muted); }

.am-checkout { max-width: 560px; margin: 0 auto; font-family: var(--am-font); color: var(--am-ink); }
.am-checkout h1 { font: 700 30px var(--am-font-cond); margin: 0 0 18px; }
.am-checkout__item { display: flex; gap: 14px; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--am-line); }
.am-checkout__item img { width: 120px; height: 90px; object-fit: cover; border-radius: 5px; }
.am-checkout__item h2 { margin: 0; font-size: 18px; }
.am-checkout__item p { margin: 4px 0 0; color: var(--am-ink-2); }
.am-sum { margin: 14px 0 18px; }
.am-sum div { display: flex; justify-content: space-between; padding: 6px 0; }
.am-sum dt { color: var(--am-ink-2); }
.am-sum dd { margin: 0; }
.am-sum__total { border-top: 1px solid var(--am-line); margin-top: 6px; padding-top: 12px !important; font-weight: 700; font-size: 20px; }
.am-checkout__p24 { text-align: center; }

/* ---------- Add listing ---------- */
.am-add { max-width: 880px; margin: 0 auto; }
.am-add__title { font: 700 34px var(--am-font-cond); margin: 0 0 6px; }
.am-promo { margin: 0 0 22px; padding: 14px 16px; border-radius: 8px; background: var(--am-green-tint); border-left: 5px solid var(--am-green); color: #134a2b; font-size: 17px; font-weight: 600; }
.am-promo--inline { font-size: 15px; font-weight: 400; }
.am-promo--inline strong { font: 700 22px var(--am-font-cond); margin-right: 4px; }
.am-add__lead { margin: 0 0 22px; color: var(--am-ink-2); font-size: 17px; }
.am-step { margin: 0 0 18px; padding: 22px; background: var(--am-paper); border: 1px solid var(--am-line); border-radius: 10px; }
.am-step > h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; font: 700 21px var(--am-font-cond); }
.am-step > h2 span { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--am-ink); color: #fff; font: 700 15px var(--am-font); }
.am-eq-group { border-top: 1px solid var(--am-line-2); padding: 10px 0; }
.am-eq-group summary { cursor: pointer; font-weight: 600; padding: 4px 0; }
.am-eq-group[open] summary { margin-bottom: 10px; }
.am-uploader { margin-bottom: 18px; }
.am-uploader__list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0 0 10px; padding: 0; }
.am-uploader__list li { position: relative; width: 132px; height: 99px; border-radius: 6px; overflow: hidden; background: var(--am-line-2); cursor: grab; }
.am-uploader__list li:first-child { outline: 3px solid var(--am-blue); outline-offset: -3px; }
.am-uploader__list li.is-bad { outline: 3px solid var(--am-red); outline-offset: -3px; opacity: .6; }
.am-uploader__list img { width: 100%; height: 100%; object-fit: cover; }
.am-uploader__list button { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .7); color: #fff; cursor: pointer; font-size: 16px; line-height: 1; }
.am-uploader__drop { position: relative; display: flex; flex-direction: column; gap: 4px; align-items: center; justify-content: center; padding: 26px; border: 2px dashed var(--am-line); border-radius: 10px; text-align: center; cursor: pointer; }
.am-uploader__drop:hover { border-color: var(--am-blue); }
.am-uploader__drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.am-uploader__drop strong { color: var(--am-blue); font-size: 17px; }
.am-uploader__drop span { color: var(--am-muted); font-size: 14px; max-width: 46ch; }
.am-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin-bottom: 16px; }
.am-plan { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 16px; border: 1px solid var(--am-line); border-radius: 8px; background: var(--am-paper); cursor: pointer; }
.am-plan input { position: absolute; opacity: 0; }
.am-plan:has(input:checked) { border-color: var(--am-blue); box-shadow: inset 0 0 0 1px var(--am-blue); background: var(--am-blue-tint); }
.am-plan:has(input:focus-visible) { outline: 3px solid var(--am-amber); }
.am-plan__len { font-weight: 700; font-size: 16px; }
.am-plan__price { font: 700 22px var(--am-font-cond); }
.am-plan__gross { font-size: 13px; color: var(--am-muted); }
.am-plans--static .am-plan { cursor: default; }
.am-check--featured { padding: 12px 14px; border-radius: 8px; background: var(--am-amber-tint); }
.am-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 0; margin: 10px 0; border-top: 1px solid var(--am-line); font-size: 15px; }
.am-total strong { font: 700 22px var(--am-font-cond); text-align: right; }
.am-add__submit { display: flex; gap: 12px; margin: 22px 0 40px; }

/* ---------- Home blocks ---------- */
.am-hero-search { padding: 22px; background: var(--am-paper); border-radius: 10px; box-shadow: 0 2px 0 var(--am-line), 0 14px 40px rgba(16, 21, 28, .14); }
.am-cattabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 16px; }
.am-cattabs label { cursor: pointer; }
.am-cattabs input { position: absolute; opacity: 0; }
.am-cattabs span { display: block; padding: 8px 14px; border-radius: 6px; font-weight: 600; color: var(--am-ink-2); }
.am-cattabs input:checked + span { background: var(--am-ink); color: #fff; }
.am-cattabs input:focus-visible + span { outline: 3px solid var(--am-amber); }
.am-hero-search__fields { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) auto; gap: 12px; align-items: end; }
.am-hero-search__fields .am-field { margin: 0; }
.am-hero-search__more { margin: 14px 0 0; font-size: 14px; }
.am-hero-search__more a { color: var(--am-blue); }
.am-makes { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0 24px; margin: 0; padding: 0; list-style: none; font-family: var(--am-font); }
.am-makes a, .am-cats a { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--am-line-2); color: var(--am-ink); text-decoration: none; }
.am-makes a:hover span, .am-cats a:hover span { color: var(--am-blue); text-decoration: underline; }
.am-makes em, .am-cats em { font-style: normal; color: var(--am-muted); }
.am-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0 24px; margin: 0; padding: 0; list-style: none; font-family: var(--am-font); }
.am-pricing, .am-finance-page { font-family: var(--am-font); }
.am-pricing__lead { font-size: 19px; max-width: 60ch; }
.am-steps { padding-left: 22px; line-height: 1.7; }
.am-testmode { position: fixed; left: 12px; bottom: 12px; z-index: 9999; padding: 8px 12px; border-radius: 6px; background: var(--am-amber); color: var(--am-amber-ink); font: 600 13px var(--am-font); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
	.am-hero-search__fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.am-hero-search__fields .am-btn { grid-column: 1 / -1; }
	.am-single__layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; }
}
@media (max-width: 900px) {
	.am-search__layout { grid-template-columns: 1fr; }
	.am-search__filters { position: fixed; inset: 0; z-index: 1000; background: rgba(16, 21, 28, .5); display: none; }
	.am-search__filters.is-open { display: block; }
	.am-search__filters .am-filters { position: absolute; inset: 0 0 0 auto; width: min(380px, 100vw); max-height: none; border-radius: 0; top: 0; }
	.am-filters__close { display: block; background: none; border: 0; font-size: 30px; line-height: 1; cursor: pointer; }
	.am-toolbar__filters { display: inline-flex; }
	/* Mobile: price + contact right after photos and key specs */
	.am-single__layout { display: flex; flex-direction: column; gap: 0; }
	.am-single__main { display: contents; }
	.am-single__main > * { order: 4; }
	.am-single__main > .am-gallery { order: 1; }
	.am-single__main > .am-single__head { order: 2; margin-bottom: 18px; }
	.am-single__side { position: static; order: 3; }
	.am-finance__grid { grid-template-columns: 1fr; }
	.am-mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; background: var(--am-paper); border-top: 1px solid var(--am-line); font-family: var(--am-font); }
	.am-mobile-cta strong { display: block; font: 700 20px var(--am-font-cond); }
	.am-mobile-cta a { font-size: 13px; color: var(--am-amber-ink); }
	.am-listing-page { padding-bottom: 72px; }
}
@media (max-width: 640px) {
	.am-wrap { padding: 0 16px; }
	.am-card--row { grid-template-columns: 120px 1fr; gap: 12px; }
	.am-card--row .am-card__side { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; text-align: left; min-width: 0; }
	.am-card--row .am-card__title { font-size: 16px; }
	.am-card--row .am-price { font-size: 22px; }
	.am-card--row .am-fav { margin: 0; }
	.am-card--row .am-specs { font-size: 13px; }
	.am-hero-search { padding: 16px; }
	.am-hero-search__fields { grid-template-columns: 1fr 1fr; }
	.am-params { grid-template-columns: 1fr; }
	.am-single__head h1, .am-search__head h1 { font-size: 26px; }
	.am-step { padding: 16px; }
	.am-mylist__item { grid-template-columns: 90px 1fr; }
	.am-mylist__item img { width: 90px; height: 68px; }
	.am-mylist__actions { grid-column: 1 / -1; }
	.am-threads a { grid-template-columns: 60px 1fr auto; }
	.am-threads img { width: 60px; height: 45px; }
	.am-threads time { display: none; }
	.am-buybox__price { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; scroll-behavior: auto !important; }
}

.am-safety__links { margin: 10px 0 0; padding-left: 1.1em; font-size: 14px; }
.am-safety__links li { margin: 3px 0; }

/* Card photo slider (swipe / arrows) */
.am-card__track { display: flex; width: 100%; height: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.am-card__track::-webkit-scrollbar { display: none; }
.am-card__track > a { flex: 0 0 100%; height: 100%; scroll-snap-align: start; }
.am-card__nav { position: absolute; top: 50%; z-index: 2; width: 34px; height: 34px; margin-top: -17px; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--am-ink); font: 400 24px/1 var(--am-font); cursor: pointer; opacity: 0; transition: opacity .15s; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.am-card__nav--prev { left: 8px; }
.am-card__nav--next { right: 8px; }
.am-card__media:hover .am-card__nav, .am-card__nav:focus-visible { opacity: 1; }
@media (hover: none) { .am-card__nav { display: none; } }
.am-card__media[data-am-slides] { z-index: 1; }

/* Stats chart (seller dashboard) */
.am-mylist__chart { margin-top: 6px; font-size: 14px; }
.am-mylist__chart summary { cursor: pointer; color: var(--am-blue); }
.am-chart { display: block; width: 100%; height: auto; max-height: 180px; margin-top: 8px; }
.am-chart__grid { stroke: var(--am-line-2); stroke-width: 1; }
.am-chart__axis { fill: var(--am-muted); font-size: 11px; font-family: var(--am-font); }
.am-chart__mark { fill: var(--am-blue); }
.am-chart__hit { fill: transparent; }
.am-chart__bar:hover .am-chart__mark { fill: #14348a; }
