/* Faiq Recond Cars V10.3.2 — Carlist-inspired immersive vehicle details on mobile.
   Original design, Midnight Navy + Gold. Mobile-only, no admin or database changes.
   This file must load AFTER vehicle-fixes-v1031.css. */
.seo-mobile-gallery-actions,.seo-mobile-dots,.seo-sticky-whatsapp { display:none; }
@media (max-width:760px) {
  html:has(body.vehicle-detail-v102),body.vehicle-detail-v102 { overflow-x:clip; }
  body.vehicle-detail-v102 { background:#fff; -webkit-text-size-adjust:100%; text-size-adjust:100%; }

  /* App-like listing view. SEO breadcrumbs/header remain in HTML for crawlers. */
  body.vehicle-detail-v102 .public-header,body.vehicle-detail-v102 .seo-crumb { display:none; }
  body.vehicle-detail-v102 .showroom {
    box-sizing:border-box; width:100%; max-width:100%; margin:0;
    padding:0 0 calc(112px + env(safe-area-inset-bottom, 0px)) !important;
  }
  body.vehicle-detail-v102 .seo-detail-grid {
    width:100%; max-width:100%; display:grid;
    grid-template-columns:minmax(0,1fr) !important; gap:0; margin:0 0 12px;
  }
  body.vehicle-detail-v102 .seo-detail-grid > section,
  body.vehicle-detail-v102 .seo-detail-grid > aside { min-width:0; max-width:100%; }

  /* Edge-to-edge image, fixed aspect ratio; original image never expands page. */
  body.vehicle-detail-v102 .seo-gallery-section { width:100%; padding:0; }
  body.vehicle-detail-v102 .seo-main-frame {
    width:100%; min-width:0; max-width:100%; aspect-ratio:4 / 3;
    background:#182537; border-radius:0; position:relative; overflow:hidden;
    isolation:isolate;
  }
  body.vehicle-detail-v102 .seo-main-frame > img#seoMainPhoto {
    width:100% !important; height:100% !important; max-width:100% !important;
    object-fit:contain; object-position:center; inset:0; position:absolute;
  }
  body.vehicle-detail-v102 .seo-noimage { color:#f7f7f7; }
  body.vehicle-detail-v102 .seo-main-frame::after {
    content:'';position:absolute;inset:0;z-index:1;pointer-events:none;
    background:linear-gradient(180deg,rgba(5,12,21,.42) 0%,transparent 26%,transparent 75%,rgba(5,12,21,.24) 100%);
  }
  body.vehicle-detail-v102 .seo-mobile-gallery-actions {
    display:flex;position:absolute;top:0;left:0;right:0;z-index:5;
    padding:calc(12px + env(safe-area-inset-top, 0px)) 15px 10px;
    align-items:center;justify-content:space-between;pointer-events:none;
  }
  body.vehicle-detail-v102 .seo-mobile-gallery-actions a,
  body.vehicle-detail-v102 .seo-mobile-gallery-actions button {
    pointer-events:auto;display:grid;place-items:center;width:43px;height:43px;
    border:1px solid rgba(255,255,255,.32);border-radius:50%;
    background:rgba(10,23,37,.65);color:#fff;box-shadow:0 2px 12px #06122438;
    padding:0;cursor:pointer;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);
  }
  body.vehicle-detail-v102 .seo-mobile-gallery-actions :is(a,button):focus-visible {
    outline:3px solid #e2c184;outline-offset:3px;
  }
  body.vehicle-detail-v102 .seo-image-navigation {
    z-index:4;top:0;bottom:0;left:0;right:0;align-items:center;
    padding:0 9px;pointer-events:none;
  }
  body.vehicle-detail-v102 .seo-image-navigation button {
    pointer-events:auto;background:rgba(11,25,41,.48);color:#fff;
    width:35px;height:45px;border:0;border-radius:8px;padding:0 8px;
    font-size:26px;line-height:1;touch-action:manipulation;
  }
  body.vehicle-detail-v102 .seo-image-navigation span {
    position:absolute;bottom:13px;right:13px;z-index:1;
    background:rgba(10,23,37,.74);font-size:11px;font-weight:700;
    padding:6px 10px;border-radius:999px;pointer-events:none;
  }
  body.vehicle-detail-v102 .seo-mobile-dots {
    position:absolute;display:flex;align-items:center;gap:5px;
    left:50%;bottom:18px;transform:translateX(-50%);z-index:4;
    pointer-events:none;
  }
  body.vehicle-detail-v102 .seo-mobile-dots span {
    width:5px;height:5px;border-radius:50%;background:rgba(255,255,255,.55);
    transition:background .15s,transform .15s;
  }
  body.vehicle-detail-v102 .seo-mobile-dots span.active {
    background:#e2c184;transform:scale(1.4);
  }
  /* Hide thumbnails on phones; swipe/arrows/counter retain every photo. */
  body.vehicle-detail-v102 .seo-gallery-thumbs { display:none; }

  /* More compact, easy-to-scan model + price, like a listing app. */
  body.vehicle-detail-v102 .seo-info-card {
    box-sizing:border-box;width:100%;padding:18px 17px 14px;
    background:#fff;border:0;border-bottom:1px solid #e8e9ec;
    border-radius:0;box-shadow:none;
  }
  body.vehicle-detail-v102 .seo-info-card .status { font-size:10px;padding:6px 9px; }
  body.vehicle-detail-v102 .seo-info-card h1 {
    color:#101c30;font-size:clamp(21px,5.7vw,26px);font-weight:800;
    line-height:1.24;letter-spacing:-.024em;margin:12px 0 7px;
    overflow-wrap:break-word;
  }
  body.vehicle-detail-v102 .seo-info-card .muted {
    font-size:13px;color:#687482;margin:0 0 10px;line-height:1.45;
  }
  body.vehicle-detail-v102 .seo-price {
    font-size:clamp(24px,6.3vw,30px);font-weight:850;
    color:#101c30;line-height:1.15;letter-spacing:-.025em;
    margin:12px 0 19px;overflow-wrap:anywhere;
  }
  body.vehicle-detail-v102 .seo-spec-grid {gap:9px;grid-template-columns:repeat(2,minmax(0,1fr));}
  body.vehicle-detail-v102 .seo-spec-item {
    min-height:63px;padding:10px 11px;border-radius:10px;background:#f4f6f8;
  }
  body.vehicle-detail-v102 .seo-spec-item span {font-size:11px;color:#697689;}
  body.vehicle-detail-v102 .seo-spec-item strong {font-size:14px;color:#17273c;margin-top:4px;}
  body.vehicle-detail-v102 .seo-info-card > a[href^="/go/whatsapp"] {display:none;}
  body.vehicle-detail-v102 .seo-info-card > .btn.secondary {
    min-height:43px;margin-top:14px;font-size:13px;border-radius:9px;
  }
  body.vehicle-detail-v102 .seo-disclaimer {font-size:11px;line-height:1.45;}
  body.vehicle-detail-v102 .seo-copy,
  body.vehicle-detail-v102 .related-vehicles,
  body.vehicle-detail-v102 #vehicleExtrasMount,
  body.vehicle-detail-v102 .seo-back {
    margin-left:15px;margin-right:15px;
  }
  body.vehicle-detail-v102 .seo-copy {padding:18px 16px;}
  body.vehicle-detail-v102 .seo-copy h2 {font-size:18px;}
  body.vehicle-detail-v102 .related-vehicles {margin-top:24px;}
  body.vehicle-detail-v102 .public-footer {padding-bottom:38px;}

  /* Single persistent CTA, using the SAME measured /go/whatsapp redirect. */
  body.vehicle-detail-v102 .seo-sticky-whatsapp {
    display:block;position:fixed;bottom:0;left:0;right:0;z-index:600;
    background:#fff;border-top:1px solid #e3e7ec;
    padding:10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    box-shadow:0 -6px 25px #0c19212b;
  }
  body.vehicle-detail-v102 .seo-sticky-whatsapp a {
    display:flex;align-items:center;justify-content:center;gap:10px;
    min-height:50px;width:100%;background:#101c30;color:#fff;
    font-size:15px;font-weight:800;border-radius:11px;
    border:1px solid #2a3c54;touch-action:manipulation;
  }
  body.vehicle-detail-v102 .seo-sticky-whatsapp svg {color:#e2c184;}
  body.vehicle-detail-v102 .seo-sticky-whatsapp a:focus-visible {outline:3px solid #c8a45d;outline-offset:3px;}
  body.vehicle-detail-v102 .analytics-consent {
    bottom:calc(78px + env(safe-area-inset-bottom, 0px));
  }
}
@media (max-width:360px){
  body.vehicle-detail-v102 .seo-info-card h1 {font-size:21px;}
  body.vehicle-detail-v102 .seo-price {font-size:24px;}
  body.vehicle-detail-v102 .seo-mobile-gallery-actions {padding-left:10px;padding-right:10px;}
}
@media (prefers-reduced-motion:reduce) {
  body.vehicle-detail-v102 .seo-mobile-dots span {transition:none;}
}
