/* KAD Auta na stanie — у стилістиці сайту (тема autodeal: Outfit/Inter, #27275A, рамки #EDEDED, радіус 16).
   Картки списку використовують розмітку й стилі карток каталогу теми (listing.css). */
.kad-st{--kad-navy:#27275A;--kad-ink:#24272C;--kad-muted:#696665;--kad-line:#EDEDED;
	width:100%;max-width:none;margin:0;padding:0 25px 90px;color:var(--kad-ink);font-family:Outfit,sans-serif;box-sizing:border-box}
.kad-st *,.kad-st *::before,.kad-st *::after{box-sizing:border-box}
.kad-ico{width:18px;height:18px;flex:none;display:inline-block;vertical-align:middle}
.single-kad_stock .page-title .inner-heading,.post-type-archive-kad_stock .page-title .inner-heading{display:none}
.single-kad_stock #themesflat-content,.post-type-archive-kad_stock #themesflat-content{padding-top:0!important}

/* ---------- Список ---------- */
.kad-st-head{margin-bottom:24px}
.kad-st .kad-st-h{font-size:30px;font-weight:500;line-height:1.25;color:var(--kad-ink);margin:0 0 4px;text-transform:none}
.kad-st .count-results{margin:0;font-size:14px;color:var(--kad-muted)}
.kad-st .count-results .count-result{color:var(--kad-navy);font-weight:500}
.kad-st-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:30px}
.kad-st-tabs{display:flex;flex-wrap:wrap;gap:8px}
.kad-st-tabs .btn-condition-filter{cursor:pointer;text-decoration:none}
.kad-st-sort{margin:0}
.kad-st-sort select{height:48px;min-width:230px;margin:0;padding:0 44px 0 18px;border:1px solid var(--kad-line);border-radius:12px;font-family:Outfit,sans-serif;font-size:16px;font-weight:500;color:var(--kad-ink);background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2324272C' stroke-width='1.6'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 18px center;-webkit-appearance:none;appearance:none;cursor:pointer}
.kad-st-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:30px}
.kad-st-grid .wrap-tfcl-listing-card{padding:0;max-width:none;width:auto}
.kad-st-grid .tfcl-listing-card{margin:0;height:100%;display:flex;flex-direction:column}
.kad-st-grid .tfcl-listing-card .content{flex:1;display:flex;flex-direction:column}
.kad-st-grid .tfcl-listing-card .price{margin-top:auto}
.kad-st-grid .tfcl-listing-card .bottom-content{margin-top:0}
.kad-st-grid .tfcl-listing-card .button-details{width:100%}
.kad-st-grid .tfcl-listing-card .button-details a{margin-left:0;display:flex;align-items:center;justify-content:center;gap:8px;width:100%}
.kad-st-grid .featured-property .listing-images,.kad-st-grid .featured-property .image-item{display:block}
.kad-st-grid .featured-property img{display:block}
.kad-st-noimg{display:flex;align-items:center;justify-content:center;aspect-ratio:3/2.15;background:#F4F4F7;color:#B5B5C3}
.kad-st-noimg .kad-ico{width:48px;height:48px}
.kad-st .featured-property .count-list-gallery{padding:4px 12px;height:auto;min-height:28px}
.kad-st .kad-st-status{display:inline-flex;align-items:center;height:auto;min-height:28px;line-height:1.2}
.kad-st-status--reserved{background:#B26A00!important}
.kad-st-status--sold{background:#6B6B75!important}
.kad-st-item--sold .featured-property img{filter:grayscale(.75);opacity:.8}
.kad-st-item--sold .sale_price{color:#9a9aa6!important;text-decoration:line-through!important}

/* Порожній стан */
.kad-st-empty{text-align:center;padding:60px 24px;border:1px solid var(--kad-line);border-radius:16px}
.kad-st-empty h3{font-size:24px;font-weight:500;margin:0 0 10px;color:var(--kad-ink)}
.kad-st-empty p{max-width:560px;margin:0 auto;font-family:Inter,sans-serif;font-size:14px;line-height:1.6;color:var(--kad-muted)}

/* Блок контакту — як «Skontaktuj się z nami» */
.kad-st-contact{margin-top:60px;padding:33px 30px 30px 27px;border-radius:16px;background:rgba(39,39,90,.15);display:flex;justify-content:space-between;align-items:center;gap:24px;flex-wrap:wrap}
.kad-st-contact h3{font-size:30px;font-weight:500;line-height:1.25;margin:0 0 10px;color:var(--kad-ink);text-transform:none}
.kad-st-contact p{margin:0;max-width:640px;font-family:Inter,sans-serif;font-size:14px;line-height:1.6;color:var(--kad-muted)}
.kad-st-contact__actions{display:flex;gap:12px;flex-wrap:wrap}

/* Кнопки — як кнопки Elementor на сайті */
.kad-st-btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:46px;padding:13px 30px;border-radius:10px;font-family:Outfit,sans-serif;font-size:18px;font-weight:500;line-height:1.1;text-decoration:none!important;cursor:pointer;border:1px solid var(--kad-navy);transition:background .3s,color .3s,border-color .3s;text-align:center}
.kad-st-btn .kad-ico{width:22px;height:22px}
.kad-st-btn--primary{background:var(--kad-navy);color:#fff!important}
.kad-st-btn--primary:hover{background:#1B1B45;border-color:#1B1B45}
.kad-st-btn--outline{background:transparent;color:var(--kad-navy)!important}
.kad-st-btn--outline:hover{background:var(--kad-navy);color:#fff!important}

/* ---------- Картка авто ---------- */
.kad-st-back{display:inline-flex;align-items:center;gap:6px;color:var(--kad-muted);font-size:14px;margin-bottom:20px;text-decoration:none}
.kad-st-back:hover{color:var(--kad-navy)}
.kad-st-back .kad-ico{width:16px;height:16px}
.kad-st-layout{display:grid;grid-template-columns:minmax(0,1fr) 440px;gap:30px;align-items:start}
.kad-st-side{position:sticky;top:120px}
.kad-st-box{border:1px solid var(--kad-line);border-radius:16px;padding:30px;background:#fff}
.kad-st .kad-st-title{font-size:30px;line-height:1.25;font-weight:500;margin:0 0 14px;color:var(--kad-ink);text-transform:none}
.kad-st-specs{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px 14px}
.kad-st-specs li{display:flex;align-items:center;gap:5px;margin:0;font-size:14px;line-height:1.4;color:var(--kad-muted)}
.kad-st-specs li svg,.kad-st-specs li img{width:16px;height:16px;flex:none}
.kad-st-pricebox{margin:18px 0 22px}
.kad-st-pricebox__row{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap}
.kad-st-price{color:var(--kad-navy);font-weight:500;line-height:1.2}
.kad-st-price--lg{font-size:30px}
.kad-st-price--sold{text-decoration:line-through;color:#9a9aa6}
.kad-st-price-old{color:#B6B6B6;font-size:16px}
.kad-st-sold-note{margin:0 0 6px;color:#B42318;font-weight:500}
.kad-final-note{display:flex;gap:10px;align-items:flex-start;margin:12px 0 0;padding:12px 14px;border-radius:12px;background:#EEF8F1;color:#1d5c35;font-size:14px;line-height:1.5}
.kad-final-note .kad-ico{width:20px;height:20px;color:#1F9D55;margin-top:1px}
.kad-st-actions{display:flex;flex-direction:column;gap:10px}
.kad-st-actions .kad-st-btn{width:100%}
.kad-st-location{display:flex;align-items:center;gap:8px;margin:16px 0 0;font-size:14px;color:var(--kad-muted)}
.kad-st-location .kad-ico{width:16px;height:16px}

/* Галерея — як на сторінці авто */
.kad-st-gallery__stage{position:relative;aspect-ratio:16/10;max-height:78vh;width:100%;border-radius:16px;overflow:hidden;background:#F4F4F7}
.kad-st-gallery__stage--empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:#A3A3B5}
.kad-st-gallery__stage--empty .kad-ico{width:56px;height:56px}
.kad-st-gallery__slide{position:absolute;inset:0;opacity:0;visibility:hidden;transition:opacity .35s;cursor:zoom-in}
.kad-st-gallery__slide.is-active{opacity:1;visibility:visible}
.kad-st-gallery__slide img{width:100%;height:100%;object-fit:cover;display:block}
.kad-st-gallery__nav{position:absolute;top:50%;transform:translateY(-50%);width:50px;height:50px;border-radius:12px;border:0;background:rgba(36,39,44,.4);color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0;z-index:2;transition:background .3s}
.kad-st-gallery__nav:hover{background:var(--kad-navy)}
.kad-st-gallery__nav .kad-ico{width:22px;height:22px}
.kad-st-gallery__nav--prev{left:20px}
.kad-st-gallery__nav--next{right:20px}
.kad-st-gallery__nav--next .kad-ico,.kad-st-lightbox__nav--next .kad-ico{transform:rotate(180deg)}
.kad-st-gallery__counter{position:absolute;bottom:16px;left:16px;background:#fff;color:var(--kad-ink);font-size:14px;font-weight:500;padding:8px 16px;border-radius:10px;z-index:2}
.kad-st-gallery__badge{position:absolute;top:16px;left:16px;z-index:2}
.kad-st-gallery__thumbs{display:flex;gap:16px;margin-top:18px;overflow-x:auto;scrollbar-width:thin;padding-bottom:4px}
.kad-st-gallery__thumb{flex:0 0 122px;height:100px;border-radius:10px;overflow:hidden;border:2px solid transparent;padding:0;background:none;cursor:pointer;opacity:.75;transition:opacity .2s,border-color .2s}
.kad-st-gallery__thumb img{width:100%;height:100%;object-fit:cover;display:block}
.kad-st-gallery__thumb.is-active,.kad-st-gallery__thumb:hover{opacity:1;border-color:var(--kad-navy)}
/* статус-бейдж у галереї (розмітка з class-front::status_badge) */
.kad-st-badge{display:inline-flex;align-items:center;min-height:30px;padding:4px 14px;border-radius:99px;background:var(--kad-navy);color:#fff;font-family:Inter,sans-serif;font-size:12px;font-weight:600}
.kad-st-badge--reserved{background:#B26A00}
.kad-st-badge--sold{background:#6B6B75}

/* Секції під галереєю — як «Opis samochodu» */
.kad-st-section{border:1px solid var(--kad-line);border-radius:16px;padding:30px}
.kad-st .kad-st-h4{display:flex;align-items:center;gap:12px;font-size:24px;font-weight:500;line-height:1.25;margin:0 0 20px;color:var(--kad-ink);text-transform:none}
.kad-st .kad-st-h4::before{content:"";width:4px;height:24px;border-radius:4px;background:var(--kad-navy);flex:none}
.kad-st-h4__count{display:inline-flex;align-items:center;justify-content:center;min-width:28px;height:28px;padding:0 8px;border-radius:99px;background:var(--kad-navy);color:#fff;font-size:14px;font-weight:500}
.kad-st-table{display:grid;grid-template-columns:1fr 1fr;gap:0 40px;margin:0}
.kad-st-table div{display:flex;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px dashed #E4E4EA}
.kad-st-table dt{font-size:14px;color:var(--kad-muted);font-weight:400}
.kad-st-table dd{margin:0;font-size:14px;color:var(--kad-ink);font-weight:600;text-align:right;word-break:break-word}
/* Обладнання — чіпи */
.kad-st-equip{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:10px}
.kad-st-equip li{display:inline-flex;align-items:center;gap:8px;margin:0;padding:9px 16px 9px 12px;border-radius:99px;background:rgba(39,39,90,.07);font-size:15px;line-height:1.3;color:var(--kad-ink)}
.kad-st-equip .kad-ico{width:18px;height:18px;padding:3px;border-radius:50%;background:var(--kad-navy);color:#fff;stroke-width:2.4}
.kad-st-content{font-family:Inter,sans-serif;font-size:14px;line-height:1.7;color:var(--kad-muted)}
.kad-st-content p{margin:0 0 12px}
.kad-st-section--desc{background:#FAFAFC}

/* Ліва колонка: галерея + всі блоки, щоб правий блок їхав до кінця */
.kad-st-main{display:flex;flex-direction:column;gap:30px;min-width:0}

/* Ключові параметри — плитки */
.kad-st-hl{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.kad-st-hl li{display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;column-gap:14px;align-items:center;margin:0;padding:18px;border-radius:16px;background:rgba(39,39,90,.06);border:1px solid rgba(39,39,90,.06)}
.kad-st-hl__ic{grid-row:1/3;width:48px;height:48px;border-radius:50%;background:#fff;display:flex;align-items:center;justify-content:center;color:var(--kad-navy);box-shadow:0 4px 12px rgba(39,39,90,.08)}
.kad-st-hl__ic svg,.kad-st-hl__ic img{width:22px;height:22px}
.kad-st-hl__ic svg path[fill]{fill:var(--kad-navy)}
.kad-st-hl__l{font-family:Inter,sans-serif;font-size:13px;color:var(--kad-muted);align-self:end}
.kad-st-hl__v{font-size:18px;font-weight:500;color:var(--kad-ink);align-self:start;line-height:1.3}

/* Акцентний блок «Auto na stanie» */
.kad-st-why{position:relative;overflow:hidden;padding:34px;border-radius:16px;background:var(--kad-navy);color:#fff}
.kad-st-why::after{content:"";position:absolute;right:-90px;top:-120px;width:320px;height:320px;border-radius:50%;background:rgba(255,255,255,.06)}
.kad-st-why__head{position:relative;z-index:1;margin-bottom:24px}
.kad-st-why__eyebrow{display:inline-block;margin-bottom:10px;padding:5px 12px;border-radius:99px;background:rgba(255,255,255,.14);font-family:Inter,sans-serif;font-size:12px;font-weight:600;letter-spacing:.04em;text-transform:uppercase}
.kad-st .kad-st-why h4{margin:0;font-size:26px;font-weight:500;color:#fff;text-transform:none}
.kad-st-why__list{position:relative;z-index:1;list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.kad-st-why__list li{display:flex;gap:14px;margin:0}
.kad-st-why__list li>span{flex:none;width:44px;height:44px;border-radius:12px;background:rgba(255,255,255,.12);display:flex;align-items:center;justify-content:center}
.kad-st-why__list .kad-ico{width:22px;height:22px}
.kad-st-why__list strong{display:block;font-size:17px;font-weight:500;margin:2px 0 4px;color:#fff}
.kad-st-why__list p{margin:0;font-family:Inter,sans-serif;font-size:14px;line-height:1.55;color:rgba(255,255,255,.75)}

/* CTA внизу — як «Skontaktuj się z nami» */
.kad-st-cta{display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap;padding:30px;border-radius:16px;background:rgba(39,39,90,.15)}
.kad-st .kad-st-cta h4{margin:0 0 6px;font-size:24px;font-weight:500;color:var(--kad-ink);text-transform:none}
.kad-st-cta p{margin:0;font-family:Inter,sans-serif;font-size:14px;color:var(--kad-muted)}
.kad-st-cta__btns{display:flex;gap:12px;flex-wrap:wrap}
.kad-st-btn--light{background:var(--kad-navy);color:#fff!important}
.kad-st-btn--light:hover{background:#1B1B45;border-color:#1B1B45}
.kad-st-btn--ghost{background:transparent;color:var(--kad-navy)!important}
.kad-st-btn--ghost:hover{background:var(--kad-navy);color:#fff!important}

/* Лайтбокс */
.kad-st-lightbox{position:fixed;inset:0;z-index:100000;background:rgba(10,10,25,.94);display:flex;align-items:center;justify-content:center}
.kad-st-lightbox[hidden]{display:none}
.kad-st-lightbox img{max-width:92vw;max-height:86vh;object-fit:contain;border-radius:8px}
.kad-st-lightbox__close{position:absolute;top:16px;right:20px;width:48px;height:48px;border:0;background:rgba(255,255,255,.12);color:#fff;font-size:30px;line-height:1;border-radius:50%;cursor:pointer;padding:0}
.kad-st-lightbox__nav{position:absolute;top:50%;transform:translateY(-50%);width:52px;height:52px;border-radius:12px;border:0;background:rgba(255,255,255,.12);color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0}
.kad-st-lightbox__nav .kad-ico{width:26px;height:26px}
.kad-st-lightbox__nav--prev{left:20px}
.kad-st-lightbox__nav--next{right:20px}
.kad-st-lightbox__counter{position:absolute;bottom:20px;left:50%;transform:translateX(-50%);color:#fff;font-size:14px}

@media (max-width:1199px){
	.kad-st-layout{grid-template-columns:minmax(0,1fr) 380px}
}
@media (max-width:991px){
	.kad-st-layout{grid-template-columns:1fr}
	.kad-st-side{position:static}
}
@media (max-width:1199px){
	.kad-st-why__list{grid-template-columns:1fr}
}
@media (max-width:767px){
	.kad-st-hl{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
	.kad-st-hl li{grid-template-columns:1fr;padding:14px;row-gap:8px}
	.kad-st-hl__ic{grid-row:auto;width:40px;height:40px}
	.kad-st-hl__v{font-size:16px}
	.kad-st-why{padding:24px 20px}
	.kad-st .kad-st-why h4{font-size:22px}
	.kad-st-cta{padding:22px 20px}
	.kad-st-cta__btns,.kad-st-cta__btns .kad-st-btn{width:100%}
	.kad-st-main{gap:20px}
	.kad-st{padding:0 15px 64px}
	.kad-st .kad-st-h,.kad-st-contact h3{font-size:26px}
	.kad-st-grid{grid-template-columns:1fr;gap:20px}
	.kad-st-toolbar{flex-direction:column;align-items:stretch}
	.kad-st-tabs{flex-wrap:nowrap;overflow-x:auto;padding-bottom:4px}
	.kad-st-tabs .btn-condition-filter{white-space:nowrap}
	.kad-st-sort select{width:100%}
	.kad-st-contact{padding:26px 20px}
	.kad-st-contact__actions,.kad-st-contact__actions .kad-st-btn{width:100%}
	.kad-st .kad-st-title{font-size:24px}
	.kad-st-price--lg{font-size:26px}
	.kad-st-box,.kad-st-section{padding:20px}
	.kad-st-gallery__stage{aspect-ratio:4/3}
	.kad-st-gallery__nav{display:none}
	.kad-st-gallery__nav--prev{left:10px}.kad-st-gallery__nav--next{right:10px}
	.kad-st-gallery__thumbs{gap:10px}
	.kad-st-gallery__thumb{flex-basis:84px;height:66px}
	.kad-st-table{grid-template-columns:1fr}
	.kad-st-equip{columns:1}
	.kad-st-lightbox__nav{width:42px;height:42px}
	.kad-st-lightbox__nav--prev{left:8px}.kad-st-lightbox__nav--next{right:8px}
}
