/* AutoBama Core: listing archive, card and single listing. Uses the theme's --at-* variables. */

.atc-archive, .atc-single { padding-top: 24px; padding-bottom: 48px; }

/* filters */
.atc-filters { position: sticky; top: 140px; background: #fff; border: 1px solid var(--at-line, #e4e8ef); border-radius: var(--at-radius, 18px); padding: 16px; box-shadow: var(--at-shadow); }

.atc-filters__close { display: none; width: 40px; height: 40px; border: 0; border-radius: 12px; background: var(--at-bg, #f5f7fb); font-size: 22px; line-height: 1; cursor: pointer; }
@media (max-width: 991px) { .atc-filters__close { display: inline-grid; place-items: center; } }
.atc-f { display: block; margin: 0 0 12px; padding: 0; border: 0; }
.atc-f > span, .atc-f legend { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 600; color: var(--at-ink); padding: 0; }
.atc-f select, .atc-f input { width: 100%; height: 44px; border: 1px solid var(--at-line, #e4e8ef); border-radius: 12px; background: var(--at-bg, #f5f7fb); padding: 0 12px; }
.atc-f select:focus, .atc-f input:focus { outline: 0; border-color: var(--at-primary); background: #fff; }

.atc-sort { flex: 1 1 auto; min-width: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.atc-sort::-webkit-scrollbar { display: none; }

.atc-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.atc-empty { display: grid; gap: 8px; justify-items: center; }
.atc-empty p { margin: 0; }

/* card */
.atc-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--at-line, #e4e8ef); border-radius: var(--at-radius, 18px); overflow: hidden; box-shadow: var(--at-shadow); transition: transform .15s, box-shadow .15s; }
.atc-card:hover { transform: translateY(-2px); box-shadow: 0 22px 40px -26px rgba(10, 35, 87, .4); }
.atc-card__img { position: relative; display: block; aspect-ratio: 16 / 10.5; background: #eef1f6; }
.atc-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.atc-card__noimg { position: absolute; inset: 0; background: linear-gradient(135deg, #e9edf4, #f7f9fc); }
.atc-card__badge { position: absolute; top: 10px; right: 10px; padding: 3px 10px; border-radius: 999px; background: var(--at-accent); color: var(--at-ink); font-size: 12px; font-weight: 700; }
.atc-card__count { position: absolute; bottom: 10px; left: 10px; padding: 2px 9px; border-radius: 999px; background: rgba(19, 23, 26, .72); color: #fff; font-size: 11.5px; }
.atc-card__body { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px 14px; flex: 1; }
.atc-card__title { margin: 0; font-size: 15.5px; line-height: 1.6; }
.atc-card__title a { color: var(--at-ink); text-decoration: none; }
.atc-card__title a:hover { color: var(--at-primary); }

.atc-card__price { color: var(--at-primary); font-size: 16px; font-weight: 800; }
.atc-card__price small { font-size: 12px; font-weight: 500; color: var(--at-muted, #5f6973); }
.atc-card__price.is-call { color: #3d4650; }

/* single */
.atc-crumbs { font-size: 13px; color: var(--at-muted, #5f6973); margin-bottom: 14px; }
.atc-crumbs a { color: inherit; text-decoration: none; }
.atc-single__grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
.atc-single__side { position: sticky; top: 140px; }
.atc-box { background: #fff; border: 1px solid var(--at-line, #e4e8ef); border-radius: var(--at-radius, 18px); padding: 18px 20px; margin-bottom: 18px; box-shadow: var(--at-shadow); }
.atc-box h2 { font-size: 18px; margin: 0 0 12px; }

/* gallery */
.atc-gallery { position: relative; margin-bottom: 18px; border-radius: var(--at-radius, 18px); overflow: hidden; background: #eef1f6; }
.atc-gallery__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.atc-gallery__track::-webkit-scrollbar { display: none; }
.atc-gallery__slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; aspect-ratio: 16 / 9; }
.atc-gallery__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.atc-gallery__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .9); color: var(--at-primary); font-size: 24px; cursor: pointer; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .5); }
.atc-gallery__nav--prev { right: 12px; }
.atc-gallery__nav--next { left: 12px; }
.atc-gallery__dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.atc-gallery__dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .6); cursor: pointer; transition: width .15s; }
.atc-gallery__dots button[aria-selected="true"] { width: 22px; background: #fff; }

@media (max-width: 1100px) {
	.atc-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }

}
@media (max-width: 991px) {

	.atc-filters { position: fixed; inset: 0 0 0 auto; z-index: 120; width: min(88vw, 360px); top: 0; border-radius: 0; overflow-y: auto; transform: translateX(105%); transition: transform .2s; }
	.atc-filters.is-open { transform: none; }

	.atc-single__grid { grid-template-columns: 1fr; }
	.atc-single__side { position: static; order: -1; }
}
@media (max-width: 767px) {

	.atc-cards { grid-template-columns: 1fr; gap: 12px; }
	.atc-card { flex-direction: row; }
	.atc-card__img { flex: 0 0 42%; aspect-ratio: auto; min-height: 140px; }
	.atc-card__body { padding: 10px 12px; }
	.atc-card__title { font-size: 14.5px; }

}

/* Save (heart) button and sold ribbon, added to cards by the account module */
.atc-card { position: relative; }
.atc-fav { position: absolute; top: 8px; left: 8px; z-index: 2; display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .94); color: #3d4650; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .4); cursor: pointer; text-decoration: none; transition: color .15s; }
.atc-fav svg { fill: none; stroke: currentColor; stroke-width: 2; }
.atc-fav:hover, .atc-fav[aria-pressed=true] { color: #d92d4a; }
.atc-fav[aria-pressed=true] svg { fill: currentColor; }
.atc-fav.is-busy { opacity: .6; pointer-events: none; }
.atc-fav:focus-visible { outline: 2px solid var(--at-primary); outline-offset: 2px; }
.atc-fav--wide { position: static; display: inline-flex; justify-content: center; gap: 6px; width: 100%; height: 44px; margin-top: 10px; border-radius: 12px; border: 1px solid var(--at-line, #e4e8ef); box-shadow: none; font: inherit; font-weight: 700; }
.atc-card__sold { position: absolute; top: 16px; right: -36px; z-index: 2; transform: rotate(45deg); width: 136px; padding: 3px 0; background: #b42318; color: #fff; text-align: center; font-size: 12px; font-weight: 800; }
.atc-card.is-sold .atc-card__img img { filter: grayscale(.7); }
.atc-card.is-sold .atc-card__badge { display: none; }
.atc-notice--sold { padding: 10px 14px; margin: 10px 0 0; border-radius: 12px; background: #fff7e6; border: 1px solid #f5d79e; color: #7a4b00; font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .atc-fav { transition: none; } }

/* Daily prices (module prices) */
.atc-prices { --chg-up: #b42318; --chg-down: #0b7a43; }
.atc-prices__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.atc-prices__search { flex: 1 1 260px; max-width: 420px; }
.atc-prices__search input { width: 100%; height: 46px; border: 1px solid var(--at-line, #e4e8ef); border-radius: 12px; background: #fff; padding: 0 14px; font: inherit; }
.atc-prices__search input:focus { outline: 2px solid var(--at-primary); outline-offset: 1px; }
.atc-prices__date { color: var(--at-muted, #5f6973); font-size: 13px; }
.atc-prices__brands { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 10px; scrollbar-width: thin; }
.atc-prices__brands button { flex: 0 0 auto; min-height: 40px; padding: 0 16px; border: 1px solid var(--at-line, #e4e8ef); border-radius: 999px; background: #fff; color: var(--at-ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.atc-prices__brands button.is-on { background: var(--at-primary); border-color: var(--at-primary); color: #fff; }
.atc-prices__wrap { background: #fff; border: 1px solid var(--at-line, #e4e8ef); border-radius: var(--at-radius, 18px); box-shadow: var(--at-shadow); overflow: hidden; }
.atc-prices__table { width: 100%; border-collapse: collapse; font-size: 14px; }
.atc-prices__table thead th { padding: 12px 14px; background: var(--at-bg, #f5f7fb); color: var(--at-muted, #5f6973); font-size: 13px; font-weight: 700; text-align: right; }
.atc-prices__table td, .atc-prices__row th { padding: 12px 14px; border-top: 1px solid var(--at-line, #e4e8ef); text-align: right; font-weight: 500; vertical-align: middle; }
.atc-prices__row th { font-weight: 600; }
.atc-prices__row td b { color: var(--at-primary); font-weight: 800; }
.atc-prices__group th { padding: 14px 14px 8px; border-top: 1px solid var(--at-line, #e4e8ef); text-align: right; background: color-mix(in srgb, var(--at-primary) 5%, #fff); }
.atc-prices__group span { font-size: 15px; font-weight: 800; color: var(--at-ink); }
.atc-prices__group a { float: left; font-size: 12px; font-weight: 600; text-decoration: none; }
.atc-prices__row[hidden], .atc-prices__group[hidden], .atc-prices__chart[hidden] { display: none; }
.atc-chg { display: inline-flex; padding: 2px 8px; border-radius: 8px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.atc-chg.is-up { color: var(--chg-up); background: #fef2f2; }
.atc-chg.is-down { color: var(--chg-down); background: #ecfdf3; }
.atc-chg.is-flat { color: var(--at-muted, #5f6973); }
.atc-muted { color: var(--at-muted, #5f6973); }
.atc-prices__chart-btn { min-height: 34px; padding: 0 12px; border: 1px solid var(--at-line, #e4e8ef); border-radius: 10px; background: #fff; color: var(--at-primary); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.atc-prices__chart-btn[aria-expanded=true] { background: var(--at-primary); color: #fff; border-color: var(--at-primary); }
.atc-prices__chart td { background: #fbfcfe; }
.atc-prices__none, .atc-prices__empty { padding: 20px; text-align: center; color: var(--at-muted, #5f6973); }
.atc-prices__note { margin: 8px 0 0; color: var(--at-muted, #5f6973); font-size: 12px; }
.atc-chart { position: relative; min-height: 80px; }
.atc-chart.is-loading { background: linear-gradient(90deg, #f1f4f9, #fff, #f1f4f9); background-size: 200% 100%; animation: atc-shimmer 1.2s infinite linear; border-radius: 12px; }
@keyframes atc-shimmer { to { background-position: -200% 0; } }
.atc-chart__svg { display: block; width: 100%; height: auto; touch-action: pan-y; }
.atc-chart__grid { stroke: #e9edf3; stroke-width: 1; }
.atc-chart__axis { fill: #7b8591; font-size: 11px; font-family: inherit; }
.atc-chart__m { fill: none; stroke: var(--at-primary); stroke-width: 2.5; stroke-linejoin: round; }
.atc-chart__f { fill: none; stroke: #c48a00; stroke-width: 2; stroke-dasharray: 5 4; }
.atc-chart__dot { fill: var(--at-accent); stroke: var(--at-primary); stroke-width: 2; }
.atc-chart__guide { stroke: #c7cfdb; stroke-width: 1; }
.atc-chart__tip { margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--at-ink); min-height: 1.4em; }
.atc-chart__legend { display: flex; gap: 14px; margin-top: 4px; font-size: 12px; color: var(--at-muted, #5f6973); }
.atc-chart__legend span::before { content: ""; display: inline-block; width: 16px; height: 0; margin-left: 6px; vertical-align: middle; border-top: 2.5px solid var(--at-primary); }
.atc-chart__legend .is-f::before { border-top: 2px dashed #c48a00; }
.atc-market { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--at-bg, #f5f7fb); font-size: 13px; }
.atc-market b { color: var(--at-primary); }
.atc-market a { margin-right: auto; font-size: 12px; text-decoration: none; }
.at-topbar__usd { font-weight: 700; white-space: nowrap; }
@media (max-width: 700px) {
	.atc-prices__table thead { display: none; }
	.atc-prices__table, .atc-prices__table tbody { display: block; }
	.atc-prices__row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; padding: 12px 14px; border-top: 1px solid var(--at-line, #e4e8ef); }
	.atc-prices__row[hidden] { display: none; }
	.atc-prices__row th { grid-column: 1 / -1; padding: 0; border: 0; }
	.atc-prices__row td { padding: 0; border: 0; font-size: 13px; }
	.atc-prices__row td[data-label]::before { content: attr(data-label) ": "; color: var(--at-muted, #5f6973); font-weight: 500; }
	.atc-prices__group { display: block; }
	.atc-prices__group th { display: block; }
	.atc-prices__chart { display: block; }
	.atc-prices__chart td { display: block; padding: 10px 12px; }
}
@media (prefers-reduced-motion: reduce) { .atc-chart.is-loading { animation: none; } }

/* Compare (module compare) */
.atc-cmp { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; min-height: 32px; margin: 2px 0 6px; padding: 0 10px; border: 1px solid var(--at-line, #e4e8ef); border-radius: 999px; background: #fff; color: var(--at-muted, #5f6973); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.atc-cmp:hover { color: var(--at-primary); border-color: var(--at-primary); }
.atc-cmp[aria-pressed=true], .atc-cmp.btn-added-listing-compare { background: var(--at-primary); border-color: var(--at-primary); color: #fff; }
.atc-cmp i { font-style: normal; }
.atc-cmp:focus-visible { outline: 2px solid var(--at-primary); outline-offset: 2px; }
.atc-cmp--wide { display: flex; justify-content: center; width: 100%; min-height: 44px; margin: 10px 0 0; border-radius: 12px; font-size: 14px; }

.atc-cmp-page__diff { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; margin-bottom: 10px; font-weight: 600; cursor: pointer; }
.atc-cmp-page__wrap { overflow-x: auto; background: #fff; border: 1px solid var(--at-line, #e4e8ef); border-radius: var(--at-radius, 18px); box-shadow: var(--at-shadow); }
.atc-cmp-page__wrap:focus-visible { outline: 2px solid var(--at-primary); }
.atc-cmp-table { width: 100%; min-width: calc(140px + var(--cols, 2) * 190px); border-collapse: collapse; table-layout: fixed; font-size: 14px; }
.atc-cmp-table th, .atc-cmp-table td { padding: 12px 14px; border-top: 1px solid var(--at-line, #e4e8ef); text-align: right; vertical-align: top; }
.atc-cmp-table thead th { border-top: 0; vertical-align: bottom; }
.atc-cmp-table tbody th { width: 140px; color: var(--at-muted, #5f6973); font-weight: 600; background: var(--at-bg, #f5f7fb); }
.atc-cmp-table thead th:first-child { width: 140px; }
.atc-cmp-table__img { display: block; aspect-ratio: 16 / 10.5; border-radius: 12px; overflow: hidden; background: #eef1f6; margin-bottom: 8px; }
.atc-cmp-table__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.atc-cmp-table__t { display: block; color: var(--at-ink); font-weight: 800; text-decoration: none; line-height: 1.6; }
.atc-cmp-table__x { display: inline-block; margin-top: 4px; font-size: 12px; color: #b42318; }
.atc-cmp-table tbody tr:first-child td { color: var(--at-primary); font-weight: 800; }
.atc-cmp-table tr:not(.is-same) td { background: color-mix(in srgb, var(--at-accent) 7%, #fff); }
.only-diff .atc-cmp-table tr.is-same { display: none; }
.atc-cmp-page__hint { margin-top: 12px; color: var(--at-muted, #5f6973); }

/* Price estimate (module valuation) */
.atc-fair { display: flex; flex-direction: column; gap: 2px; margin-top: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid; font-size: 13px; }
.atc-fair b { font-size: 14px; }
.atc-fair.is-good { background: #ecfdf3; border-color: #a6e9c0; color: #0b5d34; }
.atc-fair.is-fair { background: #eef4ff; border-color: #c7d7fe; color: #1d3a8a; }
.atc-fair.is-high { background: #fff7e6; border-color: #f5d79e; color: #7a4b00; }
.atc-val { max-width: 760px; margin: 0 auto; }
.atc-val__title { margin: 0 0 14px; color: var(--at-primary); }
.atc-val__form { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px 14px; align-items: end; padding: 18px; background: #fff; border: 1px solid var(--at-line, #e4e8ef); border-radius: var(--at-radius, 18px); box-shadow: var(--at-shadow); }
.atc-val__form .atc-f { margin: 0; }
.atc-val__btn { min-height: 44px; }
.atc-val__err { margin: 10px 0 0; color: #b42318; font-weight: 600; }
.atc-val__err:empty { display: none; }
.atc-val__out.is-loading { opacity: .5; }
.atc-val__res { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 16px; padding: 24px 18px; text-align: center; background: #fff; border: 1px solid var(--at-line, #e4e8ef); border-radius: var(--at-radius, 18px); box-shadow: var(--at-shadow); }
.atc-val__res:focus { outline: none; }
.atc-val__car { color: var(--at-muted, #5f6973); font-weight: 600; }
.atc-val__mid { font-size: 30px; font-weight: 900; color: var(--at-primary); line-height: 1.3; }
.atc-val__mid small { font-size: 14px; font-weight: 600; }
.atc-val__range { display: flex; align-items: center; gap: 10px; width: min(420px, 100%); font-size: 13px; font-weight: 700; color: var(--at-ink); }
.atc-val__range i { position: relative; flex: 1; height: 8px; border-radius: 999px; background: linear-gradient(to left, #0b7a43, var(--at-accent), #b42318); }
.atc-val__range em { position: absolute; top: 50%; left: 50%; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--at-primary); transform: translate(-50%, -50%); }
.atc-val__how { margin: 0; color: var(--at-muted, #5f6973); font-size: 13px; max-width: 460px; }

/* Stories (module stories) */
.atc-stories__row { display: flex; gap: 14px; margin: 0; padding: 6px 16px 10px; list-style: none; overflow-x: auto; scrollbar-width: none; }
.atc-stories__row::-webkit-scrollbar { display: none; }
.atc-stories__ring { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 84px; padding: 0; border: 0; background: none; color: var(--at-ink); font: inherit; cursor: pointer; }
.atc-stories__pic { display: block; width: 76px; height: 76px; padding: 3px; border-radius: 50%; background: conic-gradient(from 200deg, var(--at-accent), #ff7a45, var(--at-primary), var(--at-accent)); }
.atc-stories__pic img { display: block; width: 100%; height: 100%; border-radius: 50%; border: 3px solid #fff; object-fit: cover; background: #eef1f6; }
.atc-stories__ring.is-seen .atc-stories__pic { background: #cfd5de; }
.atc-stories__name { max-width: 84px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 600; }
.atc-stories__ring:focus-visible { outline: none; }
.atc-stories__ring:focus-visible .atc-stories__pic { outline: 2px solid var(--at-primary); outline-offset: 2px; }
html.atc-sv-open, html.atc-sv-open body { overflow: hidden; }
.atc-sv { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; gap: 18px; background: #0b0d12; color: #fff; }
.atc-sv[hidden] { display: none; }
.atc-sv__bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: blur(28px) brightness(.45); transform: scale(1.1); }
.atc-sv__stage { position: relative; width: min(100vw, calc(100dvh * 9 / 16)); height: min(100dvh, 860px); max-height: 100dvh; overflow: hidden; background: #000; border-radius: 14px; touch-action: none; user-select: none; -webkit-user-select: none; }
.atc-sv__media { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.atc-sv__media img, .atc-sv__media video { width: 100%; height: 100%; object-fit: contain; -webkit-user-drag: none; }
.atc-sv__zones { position: absolute; inset: 70px 0 90px; display: flex; z-index: 1; }
.atc-sv__zone { flex: 1; border: 0; background: none; cursor: pointer; padding: 0; }
.atc-sv__zone.is-prev { order: 0; } /* RTL: the right half goes back */
.atc-sv__bars { position: absolute; top: 10px; right: 10px; left: 10px; z-index: 2; display: flex; gap: 4px; direction: rtl; }
.atc-sv__bar { flex: 1; height: 3px; overflow: hidden; border-radius: 3px; background: rgba(255, 255, 255, .35); }
.atc-sv__bar i { display: block; height: 100%; background: #fff; transform-origin: right center; transform: scaleX(0); }
.atc-sv__head { position: absolute; top: 20px; right: 10px; left: 10px; z-index: 2; display: flex; align-items: center; gap: 8px; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.atc-sv__avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; }
.atc-sv__title { font-size: 14px; }
.atc-sv__tools { margin-right: auto; display: flex; gap: 2px; }
.atc-sv__btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; color: #fff; font-size: 16px; cursor: pointer; }
.atc-sv__btn:hover, .atc-sv__btn:focus-visible { background: rgba(255, 255, 255, .16); outline: none; }
.atc-sv__btn[hidden] { display: none; }
.atc-sv__close { font-size: 20px; }
.atc-sv__foot { position: absolute; right: 0; left: 0; bottom: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 40px 18px 22px; background: linear-gradient(to top, rgba(0, 0, 0, .7), transparent); pointer-events: none; }
.atc-sv__caption { margin: 0; text-align: center; font-size: 15px; font-weight: 700; line-height: 1.8; }
.atc-sv__caption[hidden], .atc-sv__cta[hidden] { display: none; }
.atc-sv__cta { pointer-events: auto; display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px; border-radius: 999px; background: var(--at-accent); color: var(--at-ink); font-weight: 800; text-decoration: none; }
.atc-sv__cta:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
/* Full-width button and the listing spec cards above it, like the original site. */
.atc-sv__cta { align-self: stretch; justify-content: center; min-height: 52px; font-size: 15px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 14px 30px -12px rgba(0, 0, 0, .7); }
.atc-sv__specs { position: absolute; right: 18px; left: 18px; bottom: calc(92px + env(safe-area-inset-bottom)); z-index: 3; display: flex; gap: 6px; direction: rtl; pointer-events: none; perspective: 900px; }
.atc-sv__specs[hidden] { display: none; }
.atc-sv__specs:not([hidden]) ~ .atc-sv__foot { padding-top: 150px; }
.atc-sv__spec { flex: 1 1 0; min-width: 0; height: 84px; }
.atc-sv__flip { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transform: rotateY(180deg); opacity: 0; animation: atcSvFlip .72s cubic-bezier(.2, .75, .25, 1) var(--d, 0ms) forwards; }
@keyframes atcSvFlip { 0% { opacity: 0; transform: rotateY(180deg); } 12% { opacity: 1; } 100% { opacity: 1; transform: rotateY(0); } }
.atc-sv__face { position: absolute; inset: 0; border-radius: 14px; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.atc-sv__face.is-back { transform: rotateY(180deg); border: 1px solid rgba(255, 215, 0, .7); background: rgba(255, 215, 0, .16); }
.atc-sv__face.is-front { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 6px 3px; border: 1px solid rgba(255, 255, 255, .42); background: rgba(255, 255, 255, .07); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3); color: #fff; text-align: center; text-shadow: 0 1px 5px rgba(0, 0, 0, .8); backdrop-filter: blur(6px); }
.atc-sv__face svg { width: 21px; height: 21px; margin-bottom: 2px; color: var(--at-accent, #FFD700); filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .7)); }
.atc-sv__face b { display: block; max-width: 100%; font-size: 11.5px; font-weight: 800; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.atc-sv__face small { font-size: 10px; line-height: 1.3; color: rgba(255, 255, 255, .85); }
@media (prefers-reduced-motion: reduce) { .atc-sv__flip { animation: none; opacity: 1; transform: none; } }
.atc-sv__stage.is-held .atc-sv__specs { opacity: 0; transition: opacity .2s; }
.atc-sv__arrow { position: relative; z-index: 2; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }
.atc-sv__arrow:hover, .atc-sv__arrow:focus-visible { background: rgba(255, 255, 255, .3); outline: none; }
.atc-sv__live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.atc-sv__stage.is-held .atc-sv__head, .atc-sv__stage.is-held .atc-sv__foot, .atc-sv__stage.is-held .atc-sv__bars { opacity: 0; transition: opacity .2s; }
@media (max-width: 600px) {
	.atc-sv__stage { width: 100vw; height: 100dvh; border-radius: 0; }
	.atc-sv__arrow { display: none; }
}
@media (prefers-reduced-motion: reduce) { .atc-sv__stage.is-held .atc-sv__head { transition: none; } }

/* ===== Listing card (AutoBama design) ===== */
.atc-card { position: relative; display: flex; flex-direction: column; padding: 10px; background: #fff; border: 1px solid var(--at-line, #e4e8ef); border-radius: 22px; overflow: hidden; box-shadow: 0 16px 34px -30px rgba(10, 35, 87, .45); transition: transform .18s, box-shadow .18s, border-color .18s; }
.atc-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--at-accent) 55%, var(--at-line)); box-shadow: 0 26px 46px -30px rgba(10, 35, 87, .45); }
.atc-card--fz { border-color: color-mix(in srgb, var(--at-accent) 40%, var(--at-line)); }
.atc-card__img { position: relative; display: block; aspect-ratio: 16 / 11; border-radius: 16px; overflow: hidden; background: #eef1f6; }
.atc-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.atc-card:hover .atc-card__img img { transform: scale(1.04); }
.atc-card__badge, .atc-card__ready { position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.atc-card__badge { background: var(--at-accent); color: var(--at-ink); }
.atc-card__ready { background: #fff; color: var(--at-ink); box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .4); }
.atc-card__ready::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--at-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--at-accent) 30%, transparent); }
.atc-card__count { position: absolute; bottom: 10px; left: 10px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 10px; background: rgba(15, 25, 20, .7); color: #fff; font-size: 12px; font-weight: 700; }
.atc-card__count .atc-ico { width: 15px; height: 15px; }
.atc-card__body { display: flex; flex-direction: column; flex: 1; gap: 8px; padding: 10px 4px 2px; }
.atc-card__specs { display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; margin: 0; padding: 6px 0 10px; border-bottom: 1px dashed var(--at-line, #e4e8ef); }
.atc-card--fz .atc-card__specs { grid-template-columns: repeat(2, 1fr); }
.atc-card__specs li { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 0 4px; text-align: center; min-width: 0; }
.atc-card__specs li + li { border-right: 1px solid var(--at-line, #e4e8ef); }
.atc-card__specs .atc-ico { color: var(--at-muted, #5f6973); margin-bottom: 2px; }
.atc-card__specs span { font-size: 11.5px; color: var(--at-muted, #5f6973); }
.atc-card__specs b { font-size: 12.5px; color: var(--at-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.atc-card__specs b small { font-weight: 500; font-size: 10.5px; color: var(--at-muted, #5f6973); }
.atc-card__title { margin: 2px 0 0; font-size: 15.5px; font-weight: 800; line-height: 1.6; }
.atc-card__title a { color: var(--at-ink); text-decoration: none; }
.atc-card__title a:hover { color: var(--at-primary); }
.atc-card__est { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 34px; padding: 5px 10px; border-radius: 12px; background: color-mix(in srgb, var(--at-accent) 12%, #fff); font-size: 12px; color: var(--at-muted, #5f6973); }
.atc-card__est b { color: var(--at-primary); font-weight: 800; }
.atc-card__est .atc-cmp { margin: 0; min-height: 28px; padding: 0 8px; flex: 0 0 auto; }
.atc-card__price { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding: 6px 6px 6px 14px; border-radius: 14px; background: var(--at-accent); color: var(--at-ink); text-decoration: none; box-shadow: 0 12px 22px -16px color-mix(in srgb, var(--at-accent) 85%, #000); }
.atc-card__price b { font-size: 15.5px; font-weight: 900; }
.atc-card__price small { font-size: 12px; font-weight: 600; }
.atc-card__price.is-call { background: color-mix(in srgb, var(--at-accent) 25%, #fff); box-shadow: none; }
.atc-card__go { order: 2; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(255, 255, 255, .6); color: var(--at-ink); }
.atc-card__price b { order: 1; }
.atc-card__price:hover .atc-card__go { background: #fff; }
.atc-card .atc-fav { top: 18px; left: 18px; }
.atc-card .atc-card__sold { top: 24px; }
@media (prefers-reduced-motion: reduce) { .atc-card, .atc-card__img img { transition: none; } }

.atc-hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------------------------------------------------------------- archive (same layout as the original) */
.atc-bread { padding: 10px 0 12px; background: radial-gradient(220px 90px at 90% 30%, rgba(255, 215, 0, .3), transparent 70%); }
.atc-bread__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; min-height: 50px; }
.atc-bread__t { margin: 0; font-size: 19px; font-weight: 800; color: var(--at-primary, #0A2357); }
.atc-bread__nav { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #5f6973; }
.atc-bread__nav a { color: #5f6973; text-decoration: none; }
.atc-bread__nav a:hover { color: var(--at-primary, #0A2357); }
.atc-archive { padding-top: 6px; }
.atc-locbar { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin: 0 0 18px; background: #fff; border: 1px solid #e4e8ef; border-radius: 16px; box-shadow: 0 12px 26px -22px rgba(10, 35, 87, .5); }
.atc-locbar__l { display: inline-flex; align-items: center; gap: 6px; flex: none; font-size: 13px; font-weight: 800; color: var(--at-primary, #0A2357); padding-inline-end: 6px; }
.atc-locbar select { flex: 1 1 0; min-width: 0; height: 42px; padding: 0 12px; border: 1px solid #e4e8ef; border-radius: 12px; background: #f6f8fb; font: inherit; font-size: 13.5px; color: var(--at-ink, #13171a); }
.atc-locbar__go { flex: none; height: 42px; padding: 0 22px; border: 0; border-radius: 12px; background: var(--at-accent, #FFD700); color: var(--at-ink, #13171a); font: inherit; font-weight: 800; font-size: 13.5px; cursor: pointer; box-shadow: 0 8px 18px -10px rgba(230, 191, 0, .9); }
.atc-locbar__go:hover { filter: brightness(.97); }
.atc-resbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 16px; }
.atc-resbar__n { margin: 0; font-size: 13px; color: #5f6973; }
.atc-resbar__end { display: flex; align-items: center; gap: 10px; }
.atc-sortf { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--at-primary, #0A2357); font-weight: 700; }
.atc-sortf select { height: 36px; padding: 0 10px; border: 1px solid #e4e8ef; border-radius: 10px; background: #fff; font: inherit; font-size: 13px; font-weight: 400; color: var(--at-ink, #13171a); }
.atc-view { display: flex; gap: 4px; }
.atc-view__a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: #5f6973; text-decoration: none; }
.atc-view__a.is-on, .atc-view__a:hover { background: #eef1f6; color: var(--at-primary, #0A2357); }
.atc-cards--archive { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.atc-cards--archive.is-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.atc-cards--archive.is-list .atc-card { flex-direction: row; }
.atc-cards--archive.is-list .atc-card__img { flex: 0 0 42%; aspect-ratio: auto; min-height: 200px; }
.atc-more { display: flex; justify-content: center; margin: 26px 0 0; }
.atc-more__btn { display: inline-flex; align-items: center; justify-content: center; min-width: 200px; height: 46px; padding: 0 26px; border-radius: 999px; border: 2px solid var(--at-accent, #FFD700); background: var(--at-accent, #FFD700); color: var(--at-ink, #13171a); font-weight: 800; font-size: 14px; text-decoration: none; box-shadow: 0 10px 22px -12px rgba(230, 191, 0, .95); transition: transform .15s; }
.atc-more__btn:hover { transform: translateY(-2px); }
.atc-more__btn.is-busy { opacity: .6; pointer-events: none; }
@media (max-width: 1199px) { .atc-cards--archive { grid-template-columns: repeat(3, minmax(0, 1fr)); } .atc-cards--archive.is-list { grid-template-columns: 1fr; } }
@media (max-width: 991px) { .atc-cards--archive { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
	.atc-locbar { flex-wrap: wrap; }
	.atc-locbar__l { flex-basis: 100%; }
	.atc-locbar__go { flex: 1 1 100%; }
	.atc-resbar { flex-direction: column; align-items: stretch; }
	.atc-resbar__end { justify-content: space-between; }
	.atc-cards--archive, .atc-cards--archive.is-list { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- single listing (same layout as the original) */
.atc-single { padding-top: 14px; }
.atc-crumbs { margin: 0 0 12px; font-size: 12.5px; color: #5f6973; }
.atc-crumbs a { color: #5f6973; text-decoration: none; }
.atc-crumbs a:hover { color: var(--at-primary, #0A2357); }
.atc-sh { margin: 0 0 22px; padding: 20px 24px; background: #fff; border: 1px solid #e4e8ef; border-radius: 22px; box-shadow: 0 18px 36px -28px rgba(10, 35, 87, .4); }
.atc-sh__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 0 0 10px; }
.atc-sh__meta, .atc-sh__acts { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.atc-sh__badge { display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border-radius: 999px; background: #fdecec; color: #c0182b; font-size: 12px; font-weight: 800; }
.atc-sh__m { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: #5f6973; }
.atc-sh__a { display: inline-flex; align-items: center; gap: 5px; width: auto; height: auto; padding: 0; border: 0; background: none; box-shadow: none; font: inherit; font-size: 12.5px; color: #5f6973; cursor: pointer; text-decoration: none; }
.atc-sh__a svg { width: 16px; height: 16px; }
.atc-sh__a:hover, .atc-sh__a[aria-pressed=true], .atc-sh__a.btn-added-listing-compare { color: var(--at-primary, #0A2357); background: none; }
.atc-sh__a.atc-fav svg { fill: none; stroke: currentColor; stroke-width: 1.8; }
.atc-sh__a.atc-fav[aria-pressed=true] svg { fill: #e23b3b; stroke: #e23b3b; }
.atc-sh__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.atc-sh__t { margin: 0; font-size: 26px; font-weight: 800; line-height: 1.6; color: var(--at-primary, #0A2357); }
.atc-sh__loc { margin: 2px 0 0; font-size: 12.5px; color: #5f6973; }
.atc-sh__price { flex: none; display: inline-flex; align-items: center; min-height: 52px; padding: 0 22px; border-radius: 14px; background: var(--at-accent, #FFD700); color: var(--at-ink, #13171a); font-size: 19px; font-weight: 900; box-shadow: 0 12px 24px -14px rgba(230, 191, 0, .95); }
.atc-sh__price.is-sold { background: #eef1f6; color: #5f6973; box-shadow: none; }
.atc-single__grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; }
.atc-single__side { position: static; display: flex; flex-direction: column; }
.atc-gallery--card { border: 1px solid #e4e8ef; border-radius: 22px; background: #fff; margin-bottom: 22px; }
.atc-gallery__tag { position: absolute; z-index: 3; top: 14px; right: 14px; padding: 4px 12px; border-radius: 10px; background: #e23b3b; color: #fff; font-size: 12px; font-weight: 800; }
.atc-gallery__count { position: absolute; z-index: 3; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 10px; background: rgba(19, 23, 26, .65); color: #fff; font-size: 12px; font-weight: 700; direction: ltr; }
.atc-spx-card { margin: 0 0 22px; padding: 26px 26px 14px; background: #fff; border: 1px solid #e4e8ef; border-radius: 24px; box-shadow: 0 22px 46px -36px rgba(10, 35, 87, .5); }
.atc-spx-card__t, .asp-rail-head h3 { position: relative; margin: 0 0 18px; padding-inline-start: 16px; font-size: 22px; font-weight: 800; line-height: 1.6; color: var(--at-primary, #0A2357); }
.atc-spx-card__t::before, .asp-rail-head h3::before { content: ""; position: absolute; right: 0; top: .3em; bottom: .3em; width: 5px; border-radius: 5px; background: var(--at-accent, #FFD700); }
.atc-spx { display: flex; flex-wrap: wrap; overflow: hidden; margin: 0; padding: 0; list-style: none; border-top: 1px solid #eef1f5; }
.atc-spx > li { flex: 1 1 22%; min-width: 150px; display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 0 0 -1px; margin-inline-start: -1px; padding: 24px 10px 22px; text-align: center; border-bottom: 1px solid #eef1f5; border-inline-start: 1px solid #eef1f5; }
.atc-spx__i { color: #6b7480; margin-bottom: 4px; transition: color .2s; }
.atc-spx > li:hover .atc-spx__i { color: var(--at-primary, #0A2357); }
.atc-spx__l { font-size: 12.5px; color: #5b6573; line-height: 1.7; }
.atc-spx__v { font-size: 15.5px; font-weight: 800; color: var(--at-ink, #13171a); line-height: 1.7; }
.atc-desc-card { margin: 0 0 22px; padding: 22px 24px 18px; background: #fff; border: 1px solid #e6e9ee; border-radius: 16px; box-shadow: 0 1px 2px rgba(19, 23, 26, .04); }
.atc-desc-card__t { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 18px; font-weight: 800; color: var(--at-ink, #13171a); }
.atc-desc-card__t .ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--at-accent, #FFD700); color: var(--at-ink, #13171a); }
.atc-desc-card__body { line-height: 2.1; color: #3d4650; border-inline-start: 4px solid var(--at-accent, #FFD700); padding-inline-start: 14px; }
.atc-desc-card__body h2, .atc-desc-card__body h3 { color: var(--at-primary, #0A2357); font-size: 17px; }
.atc-video { width: 100%; border-radius: 14px; background: #000; }
.atc-callbtn { display: flex; align-items: center; justify-content: center; gap: 8px; height: 60px; margin: 0 0 18px; border-radius: 12px; background: #00cf6b; border: 1px solid #00cf6b; color: #fff; font-size: 15px; font-weight: 800; text-decoration: none; box-shadow: 0 14px 26px -16px rgba(0, 160, 82, .9); transition: transform .15s; }
.atc-callbtn:hover { transform: translateY(-2px); color: #fff; }
.atc-callbtn.is-shown span { font-size: 18px; letter-spacing: .5px; }
/* sidebar price boxes */
.asp-wrap { display: grid; gap: 18px; }
.asp-wrap:empty { display: none; }
.asp-card { background: #fff; border: 1px solid #e4e8ef; border-radius: 22px; padding: 18px; box-shadow: 0 18px 36px -26px rgba(10, 35, 87, .45); }
.asp-card header { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; }
.asp-card header h3 { margin: 0; font-size: 15.5px; font-weight: 800; color: var(--at-primary, #0A2357); line-height: 1.6; }
.asp-date { margin-inline-start: auto; font-size: 11.5px; color: #6b7683; white-space: nowrap; }
.asp-live { width: 9px; height: 9px; border-radius: 50%; background: #22b46e; flex: none; animation: aspP 1.9s infinite; }
@keyframes aspP { 0% { box-shadow: 0 0 0 0 rgba(34, 180, 110, .6); } 70% { box-shadow: 0 0 0 9px rgba(34, 180, 110, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 180, 110, 0); } }
.asp-car { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: #f5f7fb; color: var(--at-ink, #13171a); text-decoration: none; }
.asp-car:hover { background: #eef2f9; }
.asp-car b { display: block; font-size: 13.5px; line-height: 1.7; }
.asp-lg { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 1px solid #e4e8ef; padding: 5px; flex: none; overflow: hidden; }
.asp-lg img, .asp-lg svg { max-width: 100%; max-height: 100%; }
.asp-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 10px; margin: 14px 0 4px; }
.asp-price small { flex: 0 0 100%; color: #6b7683; font-size: 12px; }
.asp-price strong { font-size: 22px; color: var(--at-primary, #0A2357); line-height: 1.4; font-weight: 900; }
.asp-price strong em { font-style: normal; font-size: 12.5px; color: #6b7683; margin-inline-start: 5px; font-weight: 400; }
.asp-chg { font-size: 12px; font-weight: 700; direction: ltr; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.asp-chg.up { background: #e6f7ee; color: #16935a; }
.asp-chg.down { background: #fdeaec; color: #c0182b; }
.asp-chg.flat { background: #f1f3f6; color: #5f6973; }
.asp-cmp { margin: 10px 0 0; padding: 9px 12px; border-radius: 12px; font-size: 12.5px; line-height: 1.8; }
.asp-cmp.good { background: #e6f7ee; color: #0d6e41; }
.asp-cmp.warn { background: #fff3d6; color: #7a5200; }
.asp-cmp.flat { background: #f1f3f6; color: #3d4650; }
.asp-spark { display: block; width: 100%; height: 78px; margin: 14px 0 2px; direction: ltr; }
.asp-note { margin: 12px 0 0; font-size: 12px; color: #6b7683; line-height: 1.9; }
.asp-rows { list-style: none; margin: 14px 0 0; padding: 0; }
.asp-rows li { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-top: 1px dashed #dfe5ee; font-size: 12.5px; color: #5f6973; }
.asp-rows b { font-weight: 400; color: var(--at-ink, #13171a); }
.asp-btn { display: flex; align-items: center; justify-content: center; min-height: 44px; margin-top: 14px; border-radius: 12px; background: var(--at-accent, #FFD700); color: var(--at-ink, #13171a) !important; font-size: 14px; font-weight: 800; text-decoration: none !important; transition: transform .2s; }
.asp-btn:hover { transform: translateY(-2px); }
.asp-pop { background: linear-gradient(160deg, var(--at-primary, #0a2357), #061638); border-color: var(--at-primary, #0a2357); color: #fff; }
.asp-pop header h3 { color: #fff; }
.asp-pop .asp-date { color: #9db3e0; }
.asp-search { position: relative; margin: 0 0 10px; }
.asp-search input { width: 100%; height: 42px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .1); color: #fff; padding: 0 14px; font: inherit; font-size: 13px; outline: 0; }
.asp-search input::placeholder { color: #a9bde6; }
.asp-search input:focus { background: #fff; color: var(--at-ink, #13171a); border-color: var(--at-accent, #FFD700); box-shadow: 0 0 0 3px rgba(255, 215, 0, .3); }
.asp-res { display: none; position: absolute; top: calc(100% + 6px); right: 0; left: 0; z-index: 20; max-height: 300px; overflow: auto; background: #fff; color: var(--at-ink, #13171a); border-radius: 12px; box-shadow: 0 20px 40px rgba(0, 0, 0, .35); }
.asp-res.is-open { display: block; }
.asp-res a { display: flex; justify-content: space-between; gap: 8px; padding: 10px 12px; border-bottom: 1px solid #eef1f6; color: inherit; text-decoration: none; font-size: 12.5px; line-height: 1.7; }
.asp-res a:hover { background: #f5f7fb; }
.asp-res b { color: #16935a; font-weight: 400; white-space: nowrap; }
.asp-none { padding: 14px; text-align: center; color: #6b7683; font-size: 12.5px; }
.asp-list { list-style: none; margin: 0; padding: 0; }
.asp-list a { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, .1); color: #fff !important; text-decoration: none !important; font-size: 13px; }
.asp-list a:hover .n { color: var(--at-accent, #FFD700); }
.asp-list .n { flex: 1; min-width: 0; line-height: 1.6; }
.asp-list .p { font-weight: 700; color: var(--at-accent, #FFD700); white-space: nowrap; }
.asp-pop .asp-chg.up { background: rgba(34, 180, 110, .22); color: #6fe5a6; }
.asp-pop .asp-chg.down { background: rgba(255, 90, 110, .22); color: #ff9aa9; }
.asp-pop .asp-chg.flat { background: rgba(255, 255, 255, .14); color: #dbe5fa; }
.asp-btn--ghost { background: var(--at-primary, #0a2357); color: #fff !important; }
.asp-pop .asp-btn--ghost { background: var(--at-accent, #FFD700); color: var(--at-ink, #13171a) !important; }
/* quick valuation form */
.atp-sbw-float { position: sticky; top: 24px; z-index: 5; margin-top: 18px; }
.atp-sbw-float:empty { display: none; }
.atp-sbw { position: relative; overflow: hidden; border-radius: 22px; }
.atp-sbw-val { background: linear-gradient(160deg, #13171a 0%, var(--at-primary, #0A2357) 100%); padding: 18px 16px 16px; box-shadow: 0 22px 46px -18px rgba(10, 35, 87, .75), 0 0 0 1px rgba(255, 255, 255, .08) inset; }
.atp-sbw-val::after { content: ""; position: absolute; left: -40px; top: -40px; width: 130px; height: 130px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 215, 0, .32), transparent 70%); pointer-events: none; }
.atp-sbw-vh { position: relative; display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.atp-sbw-vh .ic { flex: none; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 14px; background: var(--at-accent, #FFD700); color: #13171a; box-shadow: 0 10px 20px rgba(255, 215, 0, .35); }
.atp-sbw-vh b { display: block; font-size: 16px; font-weight: 900; color: #fff; line-height: 1.4; }
.atp-sbw-vh small { display: block; font-size: 11.5px; color: #aebad2; }
.atp-sbw-form { position: relative; display: flex; flex-direction: column; gap: 10px; }
.atp-sbw-form label { display: block; }
.atp-sbw-form label span { display: block; margin-bottom: 5px; font-size: 11.5px; font-weight: 700; color: #c9d3e8; }
.atp-sbw-form input[type=text] { width: 100%; height: 42px; padding: 0 12px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .08); color: #fff; font: inherit; font-size: 13px; outline: 0; }
.atp-sbw-form input::placeholder { color: #7f8db0; }
.atp-sbw-form input:focus { background: rgba(255, 255, 255, .15); border-color: var(--at-accent, #FFD700); }
.atp-sbw-form .r2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.atp-sbw-form button { display: flex; align-items: center; justify-content: center; gap: 8px; height: 46px; border: 0; border-radius: 13px; background: var(--at-accent, #FFD700); color: #13171a; font: inherit; font-size: 14px; font-weight: 900; cursor: pointer; box-shadow: 0 12px 24px rgba(255, 215, 0, .3); transition: transform .2s, background .2s; }
.atp-sbw-form button:hover { transform: translateY(-2px); background: #fff; }
/* related rail */
.asp-rail { background: #fff; border-top: 1px solid #e4e8ef; margin-top: 10px; padding: 34px 0 40px; }
.asp-rail-in { max-width: var(--at-wrap, 1200px); margin: 0 auto; padding: 0 16px; }
.asp-rail-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 16px; }
.asp-rail-head h3 { margin: 0; }
.asp-rail-all { display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px; border-radius: 12px; background: var(--at-accent, #FFD700); color: var(--at-ink, #13171a) !important; font-size: 14px; font-weight: 800; text-decoration: none !important; transition: transform .2s; }
.asp-rail-all:hover { transform: translateY(-2px); }
.asp-rail-box { position: relative; }
.asp-rail-row { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; padding: 4px 2px 16px; scrollbar-width: thin; }
.asp-rail-row > .atc-card { flex: 0 0 272px; scroll-snap-align: start; }
.asp-rail-nav { position: absolute; top: 42%; z-index: 3; display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--at-primary, #0a2357); color: var(--at-accent, #FFD700); font-size: 22px; line-height: 1; cursor: pointer; box-shadow: 0 12px 24px -10px rgba(10, 35, 87, .7); transition: opacity .2s; }
.asp-rail-nav:disabled { opacity: .3; cursor: default; }
.asp-rail-prev { right: -10px; }
.asp-rail-next { left: -10px; }
@media (max-width: 1024px) { .asp-rail-nav { display: none; } }
@media (max-width: 991px) {
	.atc-single__grid { grid-template-columns: 1fr; }
	.atc-single__side { order: 0; }
	.atp-sbw-float { position: static; }
	.atc-sh__t { font-size: 20px; }
}
@media (max-width: 700px) {
	.atc-sh { padding: 16px; }
	.atc-sh__acts { gap: 10px; }
	.atc-sh__price { width: 100%; justify-content: center; font-size: 17px; min-height: 46px; }
	.atc-spx-card { padding: 20px 14px 8px; }
	.atc-spx > li { flex: 1 1 44%; min-width: 0; padding: 18px 6px 16px; }
	.atc-spx__i svg { width: 26px; height: 26px; }
	.asp-rail { padding: 24px 0 28px; }
	.asp-rail-row > .atc-card { flex-basis: 72vw; }
	.asp-rail-all { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .asp-live { animation: none; } }
@media print { .at-topbar, .at-header, .at-footer, .atc-single__side, .asp-rail, .atpc-pill, .at-top, .atp-tabbar, .at-ticker-inner { display: none !important; } .atc-single__grid { grid-template-columns: 1fr; } }

.atc-sh__a.atc-fav { position: static; top: auto; left: auto; }
.at-ticker-inner + .atc-single, .at-ticker-inner + .atc-bread { margin-top: 6px; }
.atc-single .atc-crumbs { padding-top: 6px; }

/* valuation page (same layout as the original): banner, one centred card, the result card under it */
.atv-page { padding: 10px 0 30px; }
.atv-page__banner { padding: 46px 28px 120px; border-radius: 0 0 28px 28px; background: linear-gradient(135deg, color-mix(in srgb, var(--at-primary, #0A2357) 85%, #2a55b8), var(--at-primary, #0A2357) 60%); color: #fff; text-align: center; }
.atv-page__banner h1 { margin: 0 0 8px; font-size: clamp(24px, 3.4vw, 34px); font-weight: 900; color: #fff; }
.atv-page__banner p { margin: 0; color: rgba(255, 255, 255, .85); font-size: 14px; }
.atv-page__body { max-width: 560px; margin: -96px auto 0; position: relative; z-index: 1; }
.atv-page .atv { display: block; }
.atv-page .atv__card { margin: 0; background: #fff; border-radius: 18px; box-shadow: 0 30px 60px -36px rgba(10, 35, 87, .6); }
.atv-page .atv__title { display: none; }
.atv-page .atv__go { background: var(--at-primary, #0A2357); color: #fff; }
.atv-page .atv__panel--slim { margin-top: 18px; background: #fff; color: var(--at-ink, #13171a); border: 1px solid #e4e8ef; border-radius: 18px; padding: 22px; box-shadow: 0 20px 40px -32px rgba(10, 35, 87, .5); }
@media (max-width: 640px) { .atv-page__banner { padding: 30px 18px 100px; border-radius: 0 0 20px 20px; } .atv-page__body { margin-top: -80px; } }
.atv-page .atv__result, .atv-page .atv__result h3, .atv-page .atv__note, .atv-page .atv__range { color: var(--at-ink, #13171a); }
.atv-page .atv__result h3 { font-size: 20px; font-weight: 800; margin: 0 0 8px; }
.atv-page .atv__big { color: var(--at-primary, #0A2357); font-size: 30px; font-weight: 900; }
.atv-page .atv__range span { color: #5f6973; }
.atv-page .atv__range i { background: linear-gradient(90deg, #e4e8ef, var(--at-accent, #FFD700), #e4e8ef); }
.atv-page .atv__note { color: #6b7683; font-size: 12.5px; }
.atv-page .atv__cta .at-btn--line { color: var(--at-primary, #0A2357); border-color: var(--at-primary, #0A2357); }
.atv-page .atv { background: none !important; padding: 0 !important; box-shadow: none !important; border-radius: 0 !important; }
.atv-page .atv::before, .atv-page .atv::after { content: none !important; }

.atc-callbtn--m { display: none; }
@media (max-width: 991px) { .atc-callbtn--m { display: flex; margin-bottom: 22px; } .atc-single__side > .atc-callbtn { display: none; } }
