/* Buyer features: favourites, price drops, fair-price estimate, VIN, ready-made searches.
   Kept out of dist/cars-main.css (prebuilt, not rebuilt for production). Colours follow cars-main.css:
   green #86b54b (links, accents), grey #9d9c99 (block titles), red #db2828 (Semantic UI red). */

/* favourites */
.stat .fav-button { display: inline-block; margin-right: .9em; cursor: pointer; }
/* cars-main.css dims the whole stat line (opacity .4); dim only the counters so the heart stays solid */
.cars-items .ui.items > .item:not(.actions) .content .stat,
.cars-top-items .ui.items > .item:not(.actions) .content .stat { opacity: 1; }
.cars-items .ui.items > .item:not(.actions) .content .stat > :not(.fav-button),
.cars-top-items .ui.items > .item:not(.actions) .content .stat > :not(.fav-button) { opacity: .4; }
.stat .fav-button .heart.icon { font-size: 1.9em; vertical-align: middle; }
/* desktop: the heart sits above the view counter */
/* positioned, so the view counter keeps its place (.stat is position: relative in cars-main.css) */
.stat.mobile-hide .fav-button { position: absolute; right: 0; bottom: 100%; margin: 0 0 .4em; }
.stat.mobile-hide .fav-button .heart.icon { margin: 0; }
.stat .fav-button:hover .heart.icon { -webkit-text-stroke-color: #db2828; }
.fav-button .heart.icon, .fav-toggle .heart.icon { color: transparent; -webkit-text-stroke: 1.5px #9d9c99; }
.fav-button.active .heart.icon, .fav-toggle.active .heart.icon { color: #db2828; -webkit-text-stroke: 0; }
.car-contacts .fav-toggle { margin: 1.2em 1.5em 1.5em 0 !important; width: calc(100% - 1.5em) !important; }
.top.menu .links .fav-link { position: relative; }
.top.menu .links .fav-link { margin-right: 1.2em; }
.top.menu .links .fav-link .floating.label { top: -.7em; left: auto; right: -2em; margin: 0 !important; }

/* price drop (cars-main.css colours every price span and ribbon green) */
.price .price-drop, .car .price-drop,
.cars-items .ui.items > .item .price span.price-drop,
.cars-top-items .ui.items > .item .price span.price-drop { color: #db2828 !important; font-weight: bold; white-space: nowrap; font-size: .85em; }
.cars-items .item .ui.red.ribbon.label, .cars-top-items .item .ui.red.ribbon.label { background-color: #db2828 !important; border-color: #b21e1e !important; color: #fff !important; }
.price .price-drop .icon, .car .price-drop .icon { margin: 0; }

/* fair-price estimate */
.price-estimate { display: inline-block; margin: .2em 0 .5em; font-size: .9em; font-weight: bold; cursor: help; }
.price-estimate span { font-weight: normal; color: #9d9c99; }
.price-estimate.good { color: #21ba45; }
.price-estimate.fair { color: #767676; }
.price-estimate.high { color: #f2711c; }

/* ad page blocks: same pattern as the seller block (grey uppercase title) */
.car-block { padding: 1.2em 1.5em; border-top: 1px solid rgba(34, 36, 38, .1); }
.car-block .title { color: #9d9c99; text-transform: uppercase; margin-bottom: .6em; }
.car-block .note { display: block; font-size: .9em; margin: .3em 0 0; }
.car-block .price-estimate { margin: 0 .4em 0 0; font-size: 1em; cursor: default; }
.price-scale { position: relative; height: 8px; margin: 1.2em 0 .4em; background: #f3f4f5; border-radius: 4px; }
.price-scale .band { position: absolute; top: 0; bottom: 0; background: #c6e0a6; border-radius: 4px; }
.price-scale .pin { position: absolute; top: -6px; width: 4px; height: 20px; margin-left: -2px; background: #435062; border-radius: 2px; }
.price-scale-labels { display: flex; justify-content: space-between; font-size: .9em; }
.car-data .vin-show:hover { text-decoration: underline; }
.car-data .vin { font-family: monospace; letter-spacing: .03em; }
.car-data .vin-show { color: #86b54b; }
/* "VIN" badge after the card title (next to the red customs tag) */
.ui.label.vin-badge { margin: 0 0 0 .5em; padding: .3em .55em; font-size: .7rem; vertical-align: middle; white-space: nowrap; }
.ui.label.vin-badge .icon { margin: 0 .25em 0 0; }

/* ready-made searches under the filter */
.quick-searches { padding: 1em 0 .2em; }
.quick-searches .items-row { display: flex; gap: .5em; overflow-x: auto; padding-bottom: .6em; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.quick-searches .items-row::-webkit-scrollbar { display: none; }
.quick-searches .ui.basic.button { flex: 0 0 auto; margin: 0; background: #fff !important; white-space: nowrap; }
.quick-searches .ui.basic.button b { color: #86b54b; margin-left: .3em; }
.quick-searches .ui.basic.button.active { box-shadow: 0 0 0 2px #86b54b inset !important; color: #435062 !important; }
.quick-searches .ui.basic.button.price-drops.active { box-shadow: 0 0 0 2px #db2828 inset !important; }
.quick-searches .ui.basic.button.price-drops { color: #db2828 !important; box-shadow: 0 0 0 1px #db2828 inset !important; }
.quick-searches .ui.basic.button.price-drops b { color: #db2828; }

/* favourites page: empty state as a white block like the cards */
.cars-favorites .empty-favorites { background: #fff; text-align: center; padding: 2.5em 1.5em 2em; margin-bottom: 2em; }
.cars-favorites .empty-favorites-icon.heart.icon { font-size: 3em; height: auto; margin: 0 0 .3em; color: transparent; -webkit-text-stroke: 2px #db2828; }
.cars-favorites .empty-favorites h2 { font-size: 1.3em; margin: 0 0 .5em; color: #435062; }
.cars-favorites .empty-favorites p { max-width: 32em; margin: 0 auto 1.5em; color: #767676; line-height: 1.5; }
.cars-favorites .empty-favorites p .heart.icon { font-size: 1em; margin: 0 .1em; color: #db2828; }
.cars-favorites .empty-favorites .quick-searches { margin-top: 2em; padding: 1.5em 0 0; border-top: 1px solid rgba(34, 36, 38, .1); }
.cars-favorites .empty-favorites-hint { color: #9d9c99; margin-bottom: .8em; }
.cars-favorites .empty-favorites .items-row { flex-wrap: wrap; justify-content: center; overflow: visible; }

/* add / edit form */
.cars-add-form .vin-hint, .step1 .vin-hint { margin: -.5em 0 1.5em; color: #9d9c99; font-size: .9em; }
.cars-add-form input[name="vin"], .cars-add-form input[name="plate"], .step1 input[name="vin"], .step1 input[name="plate"] { text-transform: uppercase; }
@media only screen and (min-width: 768px) {
	.quick-searches .items-row { scrollbar-width: thin; }
	.quick-searches .items-row::-webkit-scrollbar { display: block; height: 6px; }
	.quick-searches .items-row::-webkit-scrollbar-thumb { background: #d4d4d5; border-radius: 3px; }
}

.cars-add-form input[name="vin"]::placeholder, .cars-add-form input[name="plate"]::placeholder, .step1 input[name="vin"]::placeholder, .step1 input[name="plate"]::placeholder { text-transform: none; }
