/* ============================================================
   KOOPCARS MOBILE DEMO — PAGE-SPECIFIC STYLES
   Loaded by every page in public/demo/*.php via:
   <link rel="stylesheet" href="assets/css/pages.css"> (after styles.css)
   Each page's body carries a "kc-page-{page}" class (see
   partials/header.php), so every rule below is scoped under that
   class — this keeps page-specific overrides (e.g. .kc-searchbar
   on home vs. listings) from leaking into other pages.
   ============================================================ */

/* ============ PAGE: about.php (.kc-page-about) — generic static-content page (About / Terms / Privacy...) ============ */
.kc-page-about .kc-article{display:flex;flex-direction:column;gap:14px;}
.kc-page-about .kc-article h1{font-size:22px;line-height:1.25;}
.kc-page-about .kc-article h2{font-size:16px;margin-top:4px;}
.kc-page-about .kc-article p{font-size:13.5px;line-height:1.65;color:var(--ink-soft);}

/* ============ PAGE: car-detail.php (.kc-page-car-detail) — Car Detail ============ */
@media (max-width:1023.98px){
  .kc-page-car-detail .kc-content{padding:0;gap:0;}
}

.kc-page-car-detail .kc-pdp-gallery{display:flex;flex-direction:column;}
.kc-page-car-detail .kc-gallery{position:relative;aspect-ratio:4/3;background:#0d1220;overflow:hidden;cursor:zoom-in;}
/* Absolutely positioned (not width/height:100% in normal flow) so the image's
   own intrinsic size can't feed back into the grid/flex auto-height chain
   that sizes .kc-gallery itself (.kc-pdp-gallery align-self:stretch <-
   .kc-gallery flex:1 <- this img) — different source photos have different
   natural dimensions, which without this would resize the whole gallery box
   (and desync it from .kc-pdp-info's height) every time the photo changes. */
.kc-page-car-detail .kc-gallery img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;}
.kc-page-car-detail .kc-gallery-top{position:absolute;top:47px;left:0;right:0;display:flex;justify-content:space-between;padding:10px 14px;z-index:3;}
.kc-page-car-detail .kc-iconbtn{width:38px;height:38px;border-radius:50%;background:rgba(13,18,32,.55);backdrop-filter:blur(3px);border:none;display:flex;align-items:center;justify-content:center;color:#fff;cursor:pointer;}
.kc-page-car-detail .kc-iconbtn svg{width:18px;height:18px;stroke:#fff;fill:none;stroke-width:2;}
.kc-page-car-detail .kc-iconbtn.fav.saved svg{fill:var(--kc-red);stroke:var(--kc-red);}
.kc-page-car-detail .kc-gallery-right{display:flex;gap:8px;}
.kc-page-car-detail .kc-gallery-count{position:absolute;bottom:14px;right:12px;background:rgba(13,18,32,.6);color:#fff;font:700 11.5px var(--font-body);padding:5px 10px;border-radius:var(--radius-pill);}
.kc-page-car-detail .kc-swipedots{position:absolute;bottom:16px;left:0;right:0;}

.kc-page-car-detail .kc-thumbstrip{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding:10px 16px;background:var(--surface-card);}
.kc-page-car-detail .kc-thumbstrip::-webkit-scrollbar{display:none;}
.kc-page-car-detail .kc-thumb{width:64px;height:48px;flex:none;padding:0;border-radius:8px;overflow:hidden;border:2px solid transparent;background:none;cursor:pointer;}
.kc-page-car-detail .kc-thumb.active{border-color:var(--kc-blue);}
.kc-page-car-detail .kc-thumb img{width:100%;height:100%;object-fit:cover;display:block;}

.kc-page-car-detail .kc-pdp-info{display:flex;flex-direction:column;gap:16px;padding:16px;}
.kc-page-car-detail .kc-pdp-desc{padding:0 16px 16px;}
.kc-page-car-detail .kc-pdp-contact{padding:0 16px 16px;}
.kc-page-car-detail .kc-backrow{display:flex;align-items:center;justify-content:space-between;margin:-4px 0 -6px;}
.kc-page-car-detail .kc-backlink{display:flex;align-items:center;gap:6px;font:700 13px var(--font-body);color:var(--ink-soft);}
.kc-page-car-detail .kc-backlink svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:2.2;}
.kc-page-car-detail .kc-exitbtn{width:30px;height:30px;border-radius:50%;background:var(--surface);border:1px solid var(--border);display:flex;align-items:center;justify-content:center;color:var(--ink-soft);}
.kc-page-car-detail .kc-exitbtn svg{width:14px;height:14px;stroke:currentColor;fill:none;stroke-width:2.2;}

.kc-page-car-detail .kc-price{font-family:var(--font-display);font-weight:800;font-size:28px;color:var(--kc-red);}
.kc-page-car-detail .kc-title{font-size:19px;font-weight:700;margin-top:2px;}
.kc-page-car-detail .kc-locrow{display:flex;align-items:center;gap:6px;font-size:13px;color:var(--ink-soft);margin-top:6px;}
.kc-page-car-detail .kc-locrow svg{width:14px;height:14px;stroke:currentColor;fill:none;stroke-width:2;}

.kc-page-car-detail .kc-quickspecs{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;}
.kc-page-car-detail .kc-qs{background:var(--surface-card);border:1px solid var(--border);border-radius:12px;padding:10px 6px;display:flex;flex-direction:column;align-items:center;gap:5px;text-align:center;}
.kc-page-car-detail .kc-qs svg{width:18px;height:18px;stroke:var(--kc-blue);fill:none;stroke-width:1.8;}
.kc-page-car-detail .kc-qs b{font-size:12.5px;font-weight:800;}
.kc-page-car-detail .kc-qs span{font-size:10px;color:var(--ink-faint);font-weight:700;text-transform:uppercase;letter-spacing:.03em;}

.kc-page-car-detail .kc-desc{font-size:13.5px;line-height:1.6;color:var(--ink-soft);}
.kc-page-car-detail .kc-desc.clamp{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;}
.kc-page-car-detail .kc-morebtn{margin-top:8px;background:none;border:none;color:var(--kc-blue);font-weight:700;font-size:12.5px;padding:0;cursor:pointer;}

.kc-page-car-detail .kc-seller{display:flex;align-items:center;gap:12px;}
.kc-page-car-detail .kc-seller-info b{font-size:14px;}
.kc-page-car-detail .kc-seller-info p{font-size:12px;color:var(--ink-soft);margin-top:2px;}
.kc-page-car-detail .kc-contact-rows{display:flex;flex-direction:column;gap:8px;margin-top:12px;padding-top:12px;border-top:1px solid var(--border);}
.kc-page-car-detail .kc-contact-row{display:flex;align-items:center;gap:9px;font-size:13px;color:var(--ink);}
.kc-page-car-detail .kc-contact-row svg{width:15px;height:15px;stroke:var(--ink-faint);fill:none;stroke-width:2;flex:none;}
.kc-page-car-detail .kc-seller-actions{display:flex;gap:8px;margin-top:12px;}
.kc-page-car-detail .kc-seller-actions .kc-btn{flex:1;font-size:13.5px;padding:11px 16px;}
.kc-page-car-detail .kc-dealer-link{font-size:13px;color:var(--kc-blue);font-weight:700;word-break:break-all;}

.kc-page-car-detail .kc-pdp-related{padding:0 16px;}
.kc-page-car-detail .kc-rlisting{width:250px;flex:none;background:var(--surface-card);border:1px solid var(--border);border-radius:12px;overflow:hidden;cursor:pointer;display:flex;flex-direction:column;}
.kc-page-car-detail .kc-rlisting .media{position:relative;aspect-ratio:16/10;}
.kc-page-car-detail .kc-rlisting .media .kc-listing-badges{top:8px;left:8px;}
.kc-page-car-detail .kc-rlisting .kc-listing-fav{display:none;}
.kc-page-car-detail .kc-rlisting .b{padding:10px 11px;display:flex;flex-direction:column;gap:5px;}
.kc-page-car-detail .kc-rlisting .price{font-family:var(--font-display);font-weight:800;font-size:13.5px;color:var(--kc-red);}
.kc-page-car-detail .kc-rlisting .title{font-size:12.5px;font-weight:700;line-height:1.3;white-space:normal;overflow:visible;}
.kc-page-car-detail .kc-rlisting .meta{font-size:11.5px;color:var(--ink-soft);line-height:1.35;display:flex;align-items:center;gap:4px;}
.kc-page-car-detail .kc-rlisting .meta svg{width:12px;height:12px;stroke:currentColor;fill:none;stroke-width:2;flex:none;}
.kc-page-car-detail .kc-rlisting .specs{display:flex;gap:5px;flex-wrap:wrap;margin-top:3px;}
.kc-page-car-detail .kc-rlisting .specs span{font-size:10px;color:var(--ink-soft);font-weight:700;background:var(--surface);border:1px solid var(--border);border-radius:6px;padding:3px 6px;}

@media (max-width:1023.98px){
  .kc-page-car-detail .kc-pdp-related .kc-hscroll{margin:0;padding:0 0 4px;}
}

.kc-page-car-detail .kc-stickybar .kc-btn{flex:1;font-size:14.5px;padding:14px;}

@media (min-width:1024px){
  .kc-page-car-detail .kc-pdp{display:grid;grid-template-columns:1.4fr 1fr;column-gap:32px;row-gap:16px;align-items:start;}
  /* Gallery has no fixed height here — align-self:stretch makes it match
     row 1's height, which .kc-pdp-info (the only other row-1 item) sets
     via its own content (backrow + price + quickspecs + Specifications).
     So the photo's bottom edge lines up with the bottom of Specifications. */
  .kc-page-car-detail .kc-pdp-gallery{grid-column:1;grid-row:1;align-self:stretch;}
  .kc-page-car-detail .kc-pdp-info{grid-column:2;grid-row:1;padding:0;}
  .kc-page-car-detail .kc-pdp-contact{grid-column:1;grid-row:2;padding:0;}
  .kc-page-car-detail .kc-pdp-desc{grid-column:2;grid-row:2;padding:0;}
  .kc-page-car-detail .kc-pdp-related{grid-column:1/-1;grid-row:3;margin-top:16px;padding:0;}
  .kc-page-car-detail .kc-gallery{flex:1;min-height:0;aspect-ratio:auto;border-radius:var(--radius-card);}
  .kc-page-car-detail .kc-gallery-top{top:14px;}
  .kc-page-car-detail .kc-thumbstrip{padding:10px 0 0;background:transparent;}
  .kc-page-car-detail .kc-stickybar{display:none;}

  /* Desktop has no touch-swipe, and a hidden scrollbar leaves no way
     to reach later cards with a mouse — show them all at once as a
     wrapping grid instead of a horizontal-scroll strip. */
  .kc-page-car-detail .kc-pdp-related .kc-hscroll{
    display:grid;grid-template-columns:repeat(5,1fr);gap:16px;
    overflow-x:visible;margin:0;padding:0;
  }
  .kc-page-car-detail .kc-pdp-related .kc-rlisting{width:auto;}
}

/* ============ PAGE: contact.php (.kc-page-contact) — Contact Us ============ */
.kc-page-contact .kc-intro{font-size:13.5px;line-height:1.6;color:var(--ink-soft);}

.kc-page-contact .kc-quickrow{display:flex;align-items:center;gap:12px;padding:14px 16px;}
.kc-page-contact .kc-quickrow-icon{
  width:40px;height:40px;border-radius:50%;flex:none;
  background:var(--kc-blue-tint);
  display:flex;align-items:center;justify-content:center;
}
.kc-page-contact .kc-quickrow-icon svg{width:19px;height:19px;stroke:var(--kc-blue-dark);fill:none;stroke-width:2;}
.kc-page-contact .kc-quickrow-text{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px;}
.kc-page-contact .kc-quickrow-text b{font-size:14px;font-weight:700;}
.kc-page-contact .kc-quickrow-text span{font-size:12.5px;color:var(--ink-soft);}
.kc-page-contact .kc-quickrow-chev{width:16px;height:16px;stroke:var(--ink-faint);fill:none;stroke-width:2;flex:none;}

.kc-page-contact .kc-ortext{display:flex;align-items:center;gap:10px;font:700 11.5px/1 var(--font-body);color:var(--ink-faint);text-transform:uppercase;letter-spacing:.04em;}
.kc-page-contact .kc-ortext::before,.kc-page-contact .kc-ortext::after{content:"";flex:1;height:1px;background:var(--border);}

/* ============ PAGE: coupon.php (.kc-page-coupon) — Deals & Coupons hub ============ */
.kc-page-coupon .kc-intro{font-size:13.5px;line-height:1.6;color:var(--ink-soft);}

.kc-page-coupon .kc-catcard{
  display:flex;align-items:center;gap:14px;
  background:var(--surface-card);border:1px solid var(--border);
  border-radius:var(--radius-card);box-shadow:var(--shadow-card);
  padding:16px;
}
.kc-page-coupon .kc-catcard-icon{width:52px;height:52px;border-radius:14px;display:flex;align-items:center;justify-content:center;flex:none;}
.kc-page-coupon .kc-catcard-icon svg{width:26px;height:26px;fill:none;stroke-width:2;}
.kc-page-coupon .kc-catcard-icon--service{background:var(--kc-blue-tint);}
.kc-page-coupon .kc-catcard-icon--service svg{stroke:var(--kc-blue-dark);}
.kc-page-coupon .kc-catcard-icon--parts{background:var(--kc-orange-tint);}
.kc-page-coupon .kc-catcard-icon--parts svg{stroke:var(--kc-orange);}
.kc-page-coupon .kc-catcard-text{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px;}
.kc-page-coupon .kc-catcard-text b{font-family:var(--font-display);font-size:15.5px;font-weight:700;}
.kc-page-coupon .kc-catcard-text p{font-size:12.5px;color:var(--ink-soft);}
.kc-page-coupon .kc-catcard-meta{font-size:11.5px;font-weight:700;color:var(--ink-faint);margin-top:2px;}
.kc-page-coupon .kc-catcard-chev{width:18px;height:18px;stroke:var(--ink-faint);fill:none;stroke-width:2;flex:none;}

.kc-page-coupon .kc-featgrid{display:grid;grid-template-columns:1fr 1fr;gap:12px;}
.kc-page-coupon .kc-featcard{
  background:var(--surface-card);border:1px solid var(--border);border-radius:14px;
  padding:14px;display:flex;flex-direction:column;gap:8px;box-shadow:var(--shadow-card);
}
.kc-page-coupon .kc-featcard b{font-size:13px;font-weight:700;}
.kc-page-coupon .kc-featcard-exp{font-size:11px;color:var(--ink-faint);font-weight:600;}

.kc-page-coupon .kc-catcard-wrap{display:flex;flex-direction:column;gap:18px;}

.kc-page-coupon .kc-coupon-sections{display:grid;grid-template-columns:1fr;gap:28px;}
.kc-page-coupon .kc-coupon-section{display:flex;flex-direction:column;gap:12px;min-width:0;}
.kc-page-coupon .kc-coupon-section-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;}
.kc-page-coupon .kc-coupon-section-head h2{font-size:20px;}
.kc-page-coupon .kc-coupon-section-head a{font-size:12px;font-weight:700;color:var(--kc-blue);}
.kc-page-coupon .kc-coupon-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
.kc-page-coupon .kc-coupon-card{background:var(--surface-card);border:1px solid var(--border);border-radius:var(--radius-card);box-shadow:var(--shadow-card);overflow:hidden;display:flex;flex-direction:column;min-width:0;}
.kc-page-coupon .kc-coupon-card-image{width:100%;height:112px;object-fit:cover;background:var(--kc-blue-tint);}
.kc-page-coupon .kc-coupon-card-body{padding:14px;display:flex;flex-direction:column;gap:6px;flex:1;}
.kc-page-coupon .kc-coupon-card-shop{font-family:var(--font-display);font-size:11px;font-weight:700;color:var(--ink-soft);text-transform:uppercase;letter-spacing:.03em;}
.kc-page-coupon .kc-coupon-card-offer{font-family:var(--font-display);font-size:15px;font-weight:800;line-height:1.3;}
.kc-page-coupon .kc-coupon-card-description{font-size:11.5px;line-height:1.45;color:var(--ink-soft);}
.kc-page-coupon .kc-coupon-card-expiry{font-size:10.5px;line-height:1.4;color:var(--ink-faint);margin-top:auto;padding-top:4px;}
.kc-page-coupon .kc-coupon-card-actions{display:flex;gap:6px;margin-top:6px;}
.kc-page-coupon .kc-coupon-card-actions .kc-btn{flex:1;padding-left:8px;padding-right:8px;}

.kc-page-coupon .kc-coupon-modal{position:fixed;inset:0;z-index:50;display:none;align-items:center;justify-content:center;padding:20px;background:rgba(22,29,51,.5);}
.kc-page-coupon .kc-coupon-modal.open{display:flex;}
.kc-page-coupon .kc-coupon-modal-card{position:relative;width:min(100%,520px);max-height:calc(100vh - 40px);overflow:auto;background:var(--surface-card);border-radius:var(--radius-card);box-shadow:var(--shadow-float);}
.kc-page-coupon .kc-coupon-modal-image{width:100%;height:190px;object-fit:cover;}
.kc-page-coupon .kc-coupon-modal-body{padding:22px;display:flex;flex-direction:column;gap:9px;}
.kc-page-coupon .kc-coupon-modal-body h2{font-size:24px;line-height:1.2;}
.kc-page-coupon .kc-coupon-modal-description{font-size:14px;line-height:1.55;color:var(--ink-soft);}
.kc-page-coupon .kc-coupon-modal-expiry{font-size:12px;font-weight:700;color:var(--ink-faint);}
.kc-page-coupon .kc-coupon-modal-actions{display:flex;gap:10px;margin-top:8px;}
.kc-page-coupon .kc-coupon-modal-actions .kc-btn{flex:1;}
.kc-page-coupon .kc-coupon-modal-close{position:absolute;top:12px;right:12px;width:36px;height:36px;border:0;border-radius:50%;background:rgba(22,29,51,.65);color:#fff;font-size:22px;line-height:1;cursor:pointer;padding:0 0 5px 0;}

.kc-page-coupon .kc-couponsearch{display:flex;flex-direction:column;gap:10px;}
.kc-page-coupon .kc-couponsearch .kc-searchbar{position:relative;background:var(--surface-card);border:1.5px solid var(--border);border-radius:var(--radius-pill);display:flex;align-items:center;gap:8px;padding:9px 14px;}
.kc-page-coupon .kc-couponsearch .kc-searchbar svg{width:17px;height:17px;stroke:var(--ink-faint);flex:none;}
.kc-page-coupon .kc-couponsearch .kc-searchbar input{flex:1;border:none;outline:none;font:600 13.5px var(--font-body);color:var(--ink);background:none;min-width:0;}

@media (min-width:1024px){
  .kc-page-coupon .kc-catcard-wrap{display:grid;grid-template-columns:1fr 1fr;gap:20px;}
  .kc-page-coupon .kc-coupon-sections{grid-template-columns:1fr 1fr;gap:24px;align-items:start;}
  .kc-page-coupon .kc-coupon-grid{gap:16px;}
  .kc-page-coupon .kc-couponsearch{flex-direction:row;gap:12px;}
  .kc-page-coupon .kc-couponsearch .kc-searchbar{flex:1;}
}

/* ============ PAGE: edit-your-car.php (.kc-page-edit-your-car) — Edit Listing ============ */
.kc-page-edit-your-car .kc-formsection{display:flex;flex-direction:column;gap:12px;}
.kc-page-edit-your-car .kc-fieldgrid{display:grid;grid-template-columns:1fr 1fr;gap:10px;}
.kc-page-edit-your-car .kc-fieldgrid .span2{grid-column:1 / -1;}
.kc-page-edit-your-car .kc-hint-block{font-size:12px;color:var(--ink-soft);margin-top:-4px;}

.kc-page-edit-your-car .kc-photogrid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;}
.kc-page-edit-your-car .kc-phototile-wrap{position:relative;aspect-ratio:1/1;border-radius:12px;overflow:hidden;}
.kc-page-edit-your-car .kc-photo-remove{position:absolute;top:5px;right:5px;width:22px;height:22px;border-radius:50%;background:rgba(16,20,36,.6);border:none;display:flex;align-items:center;justify-content:center;cursor:pointer;}
.kc-page-edit-your-car .kc-photo-remove svg{width:12px;height:12px;stroke:#fff;fill:none;stroke-width:2.4;}
.kc-page-edit-your-car .kc-photo-add{aspect-ratio:1/1;border-radius:12px;border:1.5px dashed var(--border-strong);background:var(--surface);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:var(--ink-faint);}
.kc-page-edit-your-car .kc-photo-add svg{width:22px;height:22px;stroke:var(--ink-faint);fill:none;stroke-width:1.8;}
.kc-page-edit-your-car .kc-photo-add span{font-size:10.5px;font-weight:700;}

.kc-page-edit-your-car .kc-stickybar .kc-btn{flex:1;}
.kc-page-edit-your-car .kc-stickybar.stack{flex-direction:column;gap:8px;align-items:stretch;}
.kc-page-edit-your-car .kc-stickybar.stack .kc-btn-danger{align-self:center;}

.kc-page-edit-your-car .kc-formwrap{display:flex;flex-direction:column;gap:18px;}

@media (min-width:1024px){
  .kc-page-edit-your-car .kc-formwrap{max-width:840px;margin:0 auto;width:100%;}
  .kc-page-edit-your-car .kc-fieldgrid-vehicle{grid-template-columns:repeat(3,1fr);}
}

/* ============ PAGE: forgot-password.php (.kc-page-forgot-password) ============ */
.kc-page-forgot-password .kc-intro-text{font-size:13.5px;line-height:1.6;color:var(--ink-soft);}

.kc-page-forgot-password .kc-success-card{
  display:flex;align-items:flex-start;gap:12px;
  background:var(--kc-success-tint);
  border:1px solid var(--kc-success);
  border-radius:var(--radius-card);
  padding:14px;
}
.kc-page-forgot-password .kc-success-icon{
  width:32px;height:32px;border-radius:50%;background:var(--kc-success);
  display:flex;align-items:center;justify-content:center;flex:none;
}
.kc-page-forgot-password .kc-success-icon svg{width:16px;height:16px;stroke:#fff;fill:none;stroke-width:2.6;}
.kc-page-forgot-password .kc-success-text{flex:1;min-width:0;}
.kc-page-forgot-password .kc-success-text b{font-size:13.5px;color:var(--kc-success);display:block;margin-bottom:2px;}
.kc-page-forgot-password .kc-success-text p{font-size:12.5px;color:var(--ink-soft);line-height:1.5;}
.kc-page-forgot-password .kc-success-dismiss{
  background:none;border:none;color:var(--ink-faint);flex:none;
  width:26px;height:26px;display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:50%;
}
.kc-page-forgot-password .kc-success-dismiss:focus-visible{outline:2px solid var(--kc-blue);outline-offset:1px;}
.kc-page-forgot-password .kc-success-dismiss svg{width:14px;height:14px;stroke:currentColor;fill:none;stroke-width:2.4;}

/* ============ PAGE: home.php (.kc-page-home) ============ */
.kc-page-home .kc-status{position:absolute;top:0;left:0;right:0;z-index:5;color:#fff;text-shadow:0 1px 6px rgba(10,20,50,.25);}
.kc-page-home .kc-topbar{position:absolute;top:0;left:0;right:0;z-index:5;background:transparent;padding-top:2px;}
.kc-page-home .kc-topbar .kc-logo{color:#fff;text-shadow:0 1px 6px rgba(10,20,50,.25);}
.kc-page-home .kc-topbar .kc-logo span{color:#fff;}

.kc-page-home .kc-hero-wrap{
  flex:1;position:relative;overflow:hidden;
  background:linear-gradient(165deg,#5590f2 0%,var(--kc-blue) 42%,var(--kc-blue-dark) 100%);
  display:flex;align-items:center;justify-content:center;
  padding:88px 16px 48px;
}
.kc-page-home .kc-hero-deco{position:absolute;inset:0;pointer-events:none;}
.kc-page-home .kc-hero-deco svg{position:absolute;inset:0;width:100%;height:100%;}

.kc-page-home .kc-hero-inner{position:relative;width:100%;max-width:400px;display:flex;flex-direction:column;align-items:center;text-align:center;gap:20px;}
.kc-page-home .kc-hero-eyebrow{font:800 11px/1 var(--font-body);letter-spacing:.14em;text-transform:uppercase;color:rgba(255,255,255,.75);}
.kc-page-home .kc-hero-inner h1{color:#fff;font-size:30px;line-height:1.18;letter-spacing:-.01em;text-wrap:balance;}
.kc-page-home .kc-hero-inner .kc-sub{font-size:14px;color:rgba(255,255,255,.86);margin-top:-6px;}

.kc-page-home .kc-searchform{width:100%;display:flex;flex-direction:column;gap:12px;position:relative;}
.kc-page-home .kc-searchbar{position:relative;background:#fff;border-radius:var(--radius-pill);display:flex;align-items:center;gap:8px;padding:7px 7px 7px 18px;box-shadow:0 16px 32px -12px rgba(8,20,55,.45);}
.kc-page-home .kc-searchbar svg{width:19px;height:19px;stroke:var(--ink-faint);flex:none;}
.kc-page-home .kc-searchbar input{flex:1;border:none;outline:none;font:600 15px var(--font-body);color:var(--ink);background:none;min-width:0;}
.kc-page-home .kc-searchbar button{background:var(--kc-blue);color:#fff;border:none;width:42px;height:42px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex:none;cursor:pointer;transition:transform .15s ease;}
.kc-page-home .kc-searchbar button:active{transform:scale(.94);}
.kc-page-home .kc-searchbar button svg{width:18px;height:18px;stroke:#fff;}

.kc-page-home .kc-locrow{display:flex;align-items:center;gap:6px;font:600 12.5px var(--font-body);color:rgba(255,255,255,.92);position:relative;}
.kc-page-home .kc-locrow svg{width:14px;height:14px;stroke:#fff;flex:none;}
.kc-page-home .kc-locrow b{text-decoration:underline;text-underline-offset:2px;cursor:pointer;}

.kc-page-home .kc-hero-stats{display:flex;gap:22px;position:relative;padding-top:4px;}
.kc-page-home .kc-hero-stat{display:flex;flex-direction:column;align-items:center;gap:2px;}
.kc-page-home .kc-hero-stat b{font-family:var(--font-display);font-weight:800;font-size:17px;color:#fff;}
.kc-page-home .kc-hero-stat span{font-size:10.5px;color:rgba(255,255,255,.7);font-weight:700;text-transform:uppercase;letter-spacing:.04em;}
.kc-page-home .kc-hero-stat-divider{width:1px;background:rgba(255,255,255,.25);}

.kc-page-home .kc-suggest{position:absolute;top:calc(100% + 4px);left:0;right:0;background:var(--surface-card);border-radius:14px;box-shadow:var(--shadow-float);overflow:hidden;border:1px solid var(--border);z-index:5;text-align:left;}

@media (min-width:1024px){
  .kc-page-home .kc-topbar{display:none;}
  .kc-page-home .kc-hero-wrap{padding:0 clamp(48px, 8vw, 144px);min-height:calc(100vh - 72px - 210px);justify-content:flex-start;}
  .kc-page-home .kc-hero-inner{flex:1 1 1180px;width:100%;max-width:1180px;align-items:flex-start;text-align:left;gap:26px;}
  .kc-page-home .kc-hero-inner h1{max-width:720px;font-size:clamp(48px, 5vw, 72px);line-height:1.08;}
  .kc-page-home .kc-hero-inner .kc-sub{font-size:16px;}
  .kc-page-home .kc-searchform{max-width:700px;}
  .kc-page-home .kc-searchbar{padding:9px 9px 9px 22px;}
  .kc-page-home .kc-searchbar input{font-size:16px;}
  .kc-page-home .kc-searchbar button{width:46px;height:46px;}
  .kc-page-home .kc-locrow{font-size:13px;}
  .kc-page-home .kc-hero-stats{gap:28px;}
}

/* ============ PAGE: login.php (.kc-page-login) — Sign In / Register ============ */
.kc-page-login .kc-topbar-spacer{width:38px;flex:none;}

.kc-page-login .kc-brand-hero{display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px;padding:8px 0 4px;}
.kc-page-login .kc-brand-hero .kc-logo{font-size:28px;}
.kc-page-login .kc-brand-hero p{font-size:13px;color:var(--ink-soft);}

.kc-page-login .kc-forgot-row{display:flex;justify-content:flex-end;margin-top:-4px;}
.kc-page-login .kc-forgot-row a{font:700 12.5px var(--font-body);color:var(--kc-blue);}

.kc-page-login .kc-divider-row{display:flex;align-items:center;gap:10px;margin:2px 0;}
.kc-page-login .kc-divider-row span{flex:1;height:1px;background:var(--border);}
.kc-page-login .kc-divider-row p{font:700 11.5px var(--font-body);letter-spacing:.03em;text-transform:uppercase;color:var(--ink-faint);white-space:nowrap;}

.kc-page-login .kc-google-btn{display:flex;align-items:center;justify-content:center;gap:10px;}
.kc-page-login .kc-google-g{
  width:20px;height:20px;border-radius:50%;background:#fff;border:1px solid var(--border-strong);
  display:flex;align-items:center;justify-content:center;flex:none;
}
.kc-page-login .kc-google-g span{
  font:800 12px var(--font-display);
  background:linear-gradient(90deg,#4285F4,#EA4335 34%,#FBBC05 67%,#34A853);
  -webkit-background-clip:text;background-clip:text;color:transparent;
}

.kc-page-login .kc-fineprint{font-size:11.5px;line-height:1.5;color:var(--ink-faint);}
.kc-page-login .kc-fineprint a{color:var(--kc-blue);font-weight:600;}

.kc-page-login .kc-auth-panel{display:flex;flex-direction:column;gap:14px;}

@media (min-width:1024px){
  .kc-page-login .kc-brand-hero{padding-top:24px;}
}

/* ============ PAGE: my-cars.php (.kc-page-my-cars) ============ */
.kc-page-my-cars .kc-mycar-list{display:flex;flex-direction:column;gap:14px;}
.kc-page-my-cars .kc-mycar-top{display:flex;}
.kc-page-my-cars .kc-mycar-top .kc-listing-media{width:112px;flex:none;aspect-ratio:1/1;}
.kc-page-my-cars .kc-mycar-top .kc-listing-body{flex:1;justify-content:center;gap:4px;}
.kc-page-my-cars .kc-badgerow{display:flex;gap:6px;flex-wrap:wrap;}
.kc-page-my-cars .kc-mycar-actions{display:flex;gap:8px;padding:10px 13px 13px;border-top:1px solid var(--border);}
.kc-page-my-cars .kc-mycar-actions .kc-btn{flex:1;}
.kc-page-my-cars .kc-mycar-actions .kc-btn-icon{flex:none;}

@media (min-width:1024px){
  .kc-page-my-cars .kc-mycar-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:18px;}
  .kc-page-my-cars .kc-mycar-top{flex-direction:column;}
  .kc-page-my-cars .kc-mycar-top .kc-listing-media{width:100%;aspect-ratio:16/10;}
  .kc-page-my-cars .kc-mycar-top .kc-listing-body{justify-content:flex-start;}
}

/* ============ PAGE: my-profile.php (.kc-page-my-profile) ============ */
.kc-page-my-profile .kc-topbar-more{font:800 16px/1 var(--font-body);letter-spacing:.03em;}

.kc-page-my-profile .kc-profile-card{display:flex;align-items:center;gap:14px;}
.kc-page-my-profile .kc-profile-card .kc-avatar{width:64px;height:64px;font-size:21px;}
.kc-page-my-profile .kc-profile-info{min-width:0;}
.kc-page-my-profile .kc-profile-info b{font-size:16px;display:block;}
.kc-page-my-profile .kc-profile-member{font-size:12px;color:var(--ink-soft);margin-top:3px;}
.kc-page-my-profile .kc-profile-email{font-size:12.5px;color:var(--ink-faint);margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}

.kc-page-my-profile .kc-menulist{display:flex;flex-direction:column;gap:10px;}
.kc-page-my-profile .kc-menurow{
  display:flex;align-items:center;gap:12px;
  background:var(--surface-card);border:1px solid var(--border);
  border-radius:var(--radius-card);padding:12px 14px;
  box-shadow:var(--shadow-card);
  cursor:pointer;
}
.kc-page-my-profile .kc-menurow-icon{
  width:38px;height:38px;border-radius:50%;background:var(--kc-blue-tint);
  display:flex;align-items:center;justify-content:center;flex:none;
}
.kc-page-my-profile .kc-menurow-icon svg{width:18px;height:18px;stroke:var(--kc-blue-dark);fill:none;stroke-width:2;}
.kc-page-my-profile .kc-menurow-label{flex:1;font-weight:700;font-size:14px;min-width:0;}
.kc-page-my-profile .kc-menurow-chevron{width:16px;height:16px;stroke:var(--ink-faint);fill:none;stroke-width:2.2;flex:none;}

.kc-page-my-profile .kc-logout-btn{color:var(--kc-red);}

.kc-page-my-profile .kc-profile-left{display:flex;flex-direction:column;gap:18px;}
.kc-page-my-profile .kc-profile-right{display:flex;flex-direction:column;gap:18px;}

@media (min-width:1024px){
  .kc-page-my-profile .kc-profile-grid{display:grid;grid-template-columns:300px 1fr;gap:28px;align-items:start;}
  .kc-page-my-profile .kc-profile-left{position:sticky;top:96px;}
}

/* ============ PAGE: reset-password.php (.kc-page-reset-password) — Set New Password ============ */
.kc-page-reset-password .kc-intro-text{font-size:13.5px;line-height:1.6;color:var(--ink-soft);}

.kc-page-reset-password .kc-strength{display:flex;align-items:center;gap:10px;}
.kc-page-reset-password .kc-strength-bars{display:flex;gap:4px;flex:1;}
.kc-page-reset-password .kc-strength-bars span{height:5px;flex:1;border-radius:3px;background:var(--border);}
.kc-page-reset-password .kc-strength-bars span.filled{background:var(--kc-success);}
.kc-page-reset-password .kc-strength-label{font:700 12px/1 var(--font-body);color:var(--kc-success);white-space:nowrap;flex:none;}

/* ============ PAGE: saved-listings.php (.kc-page-saved-listings) — Favorites (Saved / Listings) ============ */
.kc-page-saved-listings .kc-toptitle{font-family:var(--font-display);font-size:22px;font-weight:800;flex:1;}

.kc-page-saved-listings .kc-segmented a{flex:1;display:flex;align-items:center;justify-content:center;border:none;background:none;padding:10px;border-radius:var(--radius-pill);font:700 13.5px var(--font-body);color:var(--ink-soft);cursor:pointer;text-decoration:none;}
.kc-page-saved-listings .kc-segmented a.active{background:var(--kc-blue);color:#fff;}

/* ============ PAGE: saved-searches.php (.kc-page-saved-searches) ============ */
.kc-page-saved-searches .kc-toptitle{font-family:var(--font-display);font-size:22px;font-weight:800;flex:1;}

.kc-page-saved-searches .kc-segmented a{flex:1;display:flex;align-items:center;justify-content:center;border:none;background:none;padding:10px;border-radius:var(--radius-pill);font:700 13.5px var(--font-body);color:var(--ink-soft);cursor:pointer;text-decoration:none;}
.kc-page-saved-searches .kc-segmented a.active{background:var(--kc-blue);color:#fff;}

.kc-page-saved-searches .kc-search-list{display:flex;flex-direction:column;gap:12px;}
.kc-page-saved-searches .kc-search-card{display:flex;flex-direction:column;gap:10px;padding:14px 14px 12px;}
.kc-page-saved-searches .kc-search-head{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;}
.kc-page-saved-searches .kc-search-title{font-family:var(--font-display);font-weight:700;font-size:15px;}
.kc-page-saved-searches .kc-search-new{flex:none;font:800 10.5px/1 var(--font-body);letter-spacing:.02em;color:var(--kc-blue-dark);background:var(--kc-blue-tint);padding:5px 9px;border-radius:var(--radius-pill);white-space:nowrap;}
.kc-page-saved-searches .kc-search-chips{display:flex;gap:6px;flex-wrap:wrap;}
.kc-page-saved-searches .kc-search-chips .kc-chip{padding:6px 11px;font-size:12px;cursor:default;}
.kc-page-saved-searches .kc-search-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-top:8px;border-top:1px solid var(--border);}

@media (min-width:1024px){
  .kc-page-saved-searches .kc-search-list{display:grid;grid-template-columns:repeat(2,1fr);gap:16px;}
}

/* ============ PAGE: listings.php (.kc-page-listings) ============ */
.kc-page-listings .kc-searchbar{flex:1;position:relative;background:var(--surface-card);border:1.5px solid var(--border);border-radius:var(--radius-pill);display:flex;align-items:center;gap:8px;padding:9px 14px;}
.kc-page-listings .kc-searchbar svg{width:17px;height:17px;stroke:var(--ink-faint);flex:none;}
.kc-page-listings .kc-searchbar span{font:600 14px var(--font-body);color:var(--ink);}

.kc-page-listings .kc-resultbar{display:flex;align-items:center;justify-content:space-between;gap:12px;}
.kc-page-listings .kc-resultbar b{font-family:var(--font-display);font-size:15px;}
.kc-page-listings .kc-resultbar span{font-size:12.5px;color:var(--ink-soft);}

.kc-page-listings .kc-toolbar{display:flex;flex-direction:column;gap:12px;}

.kc-page-listings .kc-results-col{display:flex;flex-direction:column;gap:16px;}

.kc-page-listings .kc-listing.row{position:relative;}

.kc-page-listings .kc-listing.row .kc-listing-fav{top:auto;bottom:8px;right:8px;}

.kc-page-listings .kc-listing-meta2{font-size:12px;color:var(--ink-soft);display:flex;align-items:center;gap:5px;margin-top:1px;}
.kc-page-listings .kc-listing-meta2 svg{width:12px;height:12px;stroke:currentColor;fill:none;stroke-width:2;}

.kc-page-listings .kc-listing-specs{display:none;}

.kc-page-listings .kc-label{font:700 12.5px/1 var(--font-body);color:var(--ink-soft);display:block;margin-bottom:8px;}

.kc-page-listings .kc-pillgrid{display:flex;flex-wrap:wrap;gap:8px;}

.kc-page-listings .kc-slider-track{height:5px;border-radius:3px;background:var(--border);position:relative;margin:18px 4px 6px;}

.kc-page-listings .kc-slider-fill{position:absolute;left:3%;right:65%;top:0;bottom:0;background:var(--kc-blue);border-radius:3px;}

.kc-page-listings .kc-slider-track i{position:absolute;top:50%;width:18px;height:18px;border-radius:50%;background:#fff;border:3px solid var(--kc-blue);transform:translate(-50%, -50%);box-shadow:0 2px 6px rgba(0,0,0,.18);touch-action:none;cursor:pointer;}

.kc-page-listings .kc-slider-track i.a{left:3%;}

.kc-page-listings .kc-slider-track i.b{left:35%;}

.kc-page-listings .kc-slider-vals{display:flex;justify-content:space-between;font:700 12.5px var(--font-body);color:var(--ink-soft);}

.kc-page-listings .kc-filterfields{display:flex;flex-direction:column;gap:18px;}

.kc-page-listings .kc-desktop-filters{display:none;}

.kc-page-listings .kc-results-grid{display:flex;flex-direction:column;gap:14px;}

.kc-page-listings .kc-keywordsearch{position:relative;}

.kc-page-listings .kc-keywordsearch .kc-searchbar{width:100%;background:var(--surface-card);}

/* Filters trigger (opens the .kc-sheet-overlay below): a square icon button
   next to the top keyword search bar, on mobile/tablet where the
   .kc-desktop-filters aside is hidden; hidden again once that aside takes
   over at the desktop breakpoint. */
.kc-page-listings .kc-keywordsearch-row{display:flex;align-items:center;gap:10px;}
.kc-page-listings .kc-keywordsearch-row .kc-keywordsearch{flex:1;min-width:0;}

/* Pinned to the top of the scrolling .kc-content on mobile/tablet, same as
   .kc-topbar, so the search + filter row stays reachable while the results
   list scrolls underneath it. Desktop uses the sidebar filter panel instead
   (see .kc-desktop-filters below), so this resets to normal flow there. */
@media (max-width:1023.98px){
  .kc-page-listings .kc-keywordsearch-row{
    position:sticky;top:0;z-index:15;
    background:var(--surface);
    padding:6px 0 10px;
  }
}
.kc-page-listings .kc-filter-trigger{
  flex:none;width:40px;height:40px;
  display:flex;align-items:center;justify-content:center;
  background:var(--surface-card);border:1px solid var(--border);
  border-radius:50%;box-shadow:var(--shadow-card);
  color:var(--ink);cursor:pointer;
}
.kc-page-listings .kc-filter-trigger svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:2;}

@media (min-width:1024px){
  .kc-page-listings .kc-searchpage{display:grid;grid-template-columns:280px 1fr;gap:32px;align-items:start;}

  .kc-page-listings .kc-desktop-filters{display:flex;flex-direction:column;gap:16px;}

  .kc-page-listings .kc-listing.row{flex-direction:row;}

  .kc-page-listings .kc-listing.row .kc-listing-media{width:240px;flex:none;aspect-ratio:4/3;}

  .kc-page-listings .kc-listing.row .kc-listing-fav{top:8px;bottom:auto;}

  .kc-page-listings .kc-listing.row .kc-listing-body{flex:1;}

  .kc-page-listings .kc-listing-specs{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px;padding-top:10px;border-top:1px solid var(--border);}

  .kc-page-listings .kc-listing-specs span{font-size:11.5px;color:var(--ink-soft);font-weight:700;background:var(--surface);border:1px solid var(--border);border-radius:7px;padding:4px 9px;}

  .kc-page-listings .kc-results-grid{display:flex;flex-direction:column;gap:16px;}

  .kc-page-listings .kc-sheet-overlay{display:none;}

  .kc-page-listings .kc-filter-trigger{display:none;}

  .kc-page-listings .kc-toolbar{flex-direction:row;align-items:center;justify-content:space-between;}

  .kc-page-listings .kc-resultbar{flex:none;}
}

/* ============ PAGE: sell-your-car.php (.kc-page-sell-your-car) ============ */
.kc-page-sell-your-car .kc-formsection{display:flex;flex-direction:column;gap:12px;}
.kc-page-sell-your-car .kc-fieldgrid{display:grid;grid-template-columns:1fr 1fr;gap:10px;}
.kc-page-sell-your-car .kc-fieldgrid .span2{grid-column:1 / -1;}
.kc-page-sell-your-car .kc-hint-block{font-size:12px;color:var(--ink-soft);margin-top:-4px;}

.kc-page-sell-your-car .kc-photogrid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;}
.kc-page-sell-your-car .kc-phototile-wrap{position:relative;aspect-ratio:1/1;border-radius:12px;overflow:hidden;}
.kc-page-sell-your-car .kc-photo-remove{position:absolute;top:5px;right:5px;width:22px;height:22px;border-radius:50%;background:rgba(16,20,36,.6);border:none;display:flex;align-items:center;justify-content:center;cursor:pointer;}
.kc-page-sell-your-car .kc-photo-remove svg{width:12px;height:12px;stroke:#fff;fill:none;stroke-width:2.4;}
.kc-page-sell-your-car .kc-photo-add{aspect-ratio:1/1;border-radius:12px;border:1.5px dashed var(--border-strong);background:var(--surface);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:var(--ink-faint);}
.kc-page-sell-your-car .kc-photo-add svg{width:22px;height:22px;stroke:var(--ink-faint);fill:none;stroke-width:1.8;}
.kc-page-sell-your-car .kc-photo-add span{font-size:10.5px;font-weight:700;}

.kc-page-sell-your-car .kc-formwrap{display:flex;flex-direction:column;gap:18px;}

@media (min-width:1024px){
  .kc-page-sell-your-car .kc-formwrap{max-width:840px;margin:0 auto;width:100%;}
  .kc-page-sell-your-car .kc-fieldgrid-vehicle{grid-template-columns:repeat(3,1fr);}
}
