/* ============================================================
   Drive Trade — תוספות לדפים בכתובות אמיתיות.
   dt-shared.css נותן את כל השפה הוויזואלית של האתר;
   כאן רק מה שלא היה קיים ב-SPA (פירורי לחם, קישורי-כרטיס, מאמרים).
   ============================================================ */

.dt-page { margin: 0; background: #0b0b0b; }
.dt-screen { display: block; min-height: 60vh; }

/* ההדר של ה-SPA היה fixed מעל הירו; כאן הדפים מתחילים מתחתיו. */
.dt-header { position: sticky; top: 0; }
.dt-page .dt-screen { padding-top: 0; }

/* ---------- פירורי לחם ---------- */
.dt-crumbs-wrap { max-width: 1200px; margin: 0 auto; padding: 18px var(--spacing-page-x, 5vw) 0; }
.dt-crumbs ol {
  display: flex; flex-wrap: wrap; gap: 6px;
  list-style: none; margin: 0 0 14px; padding: 0;
  font-size: .8rem; color: #8a8a8a;
}
.dt-crumbs li + li::before { content: "›"; margin-inline-end: 6px; color: #555; }
.dt-crumbs a { color: #c8a84b; text-decoration: none; }
.dt-crumbs a:hover { text-decoration: underline; }
.dt-crumbs [aria-current="page"] { color: #ddd; }

/* ---------- כרטיס שהוא קישור אמיתי ---------- */
.dt-card-link { display: block; text-decoration: none; color: inherit; }
.dt-card-link:hover { text-decoration: none; }
.dt-card-more { font-size: .82rem; font-weight: 700; color: #c8a84b; white-space: nowrap; }

/* ---------- גריד ---------- */
.dt-grid { max-width: 1200px; margin: 0 auto; padding: 0 var(--spacing-page-x, 5vw) 60px; }

/* ---------- הירו של דף מוצר ---------- */
.dt-hero { min-height: 68vh; }
.dt-hero-price {
  margin-top: 18px; font-size: 1.5rem; font-weight: 800; color: #c8a84b;
}

/* ---------- מפרט / הערות ---------- */
.dt-notes { color: #cfcfcf; line-height: 1.8; max-width: 800px; }

/* ---------- "עוד מהמלאי" ---------- */
.dt-more { padding-bottom: 20px; }
.dt-more .dt-grid { padding-bottom: 20px; }
.dt-more-link { text-align: center; }
.dt-more-link a { color: #c8a84b; font-weight: 700; text-decoration: none; }

/* ---------- קישור צולב בין הקטגוריות ---------- */
.dt-cross {
  max-width: 1200px; margin: 0 auto 50px; padding: 22px var(--spacing-page-x, 5vw);
  border-top: 1px solid #222; color: #aaa; font-size: .95rem;
}
.dt-cross a { color: #c8a84b; font-weight: 600; }

.dt-empty {
  max-width: 800px; margin: 40px auto 80px; padding: 0 var(--spacing-page-x, 5vw);
  color: #bbb; text-align: center; line-height: 1.8;
}
.dt-empty a { color: #c8a84b; }

/* ---------- מאמרים ---------- */
.dt-article { max-width: 860px; margin: 0 auto; padding: 30px var(--spacing-page-x, 5vw) 90px; color: #ddd; }
.dt-article h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); color: #fff; margin: 6px 0 4px; }
.dt-article h2 { font-size: 1.15rem; color: #c8a84b; margin: 30px 0 8px; }
.dt-article-meta { color: #888; font-size: .82rem; margin-bottom: 26px; }
.dt-article-body { line-height: 1.9; }
.dt-article-body p, .dt-article-body li { color: #cfcfcf; }
.dt-article-body a { color: #c8a84b; }
.dt-article-list { list-style: none; padding: 0; margin: 26px 0 0; }
.dt-article-list li { border-top: 1px solid #222; padding: 18px 0; }
.dt-article-list a { display: block; color: #fff; font-size: 1.05rem; font-weight: 700; text-decoration: none; }
.dt-article-list a:hover { color: #c8a84b; }
.dt-article-list span { display: block; color: #999; font-size: .88rem; margin-top: 5px; line-height: 1.7; }

/* ---------- 404 ---------- */
.dt-404 { max-width: 700px; margin: 0 auto; padding: 90px var(--spacing-page-x, 5vw); text-align: center; color: #ddd; }
.dt-404 h1 { color: #fff; font-size: 1.7rem; margin-bottom: 12px; }
.dt-404-links { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.dt-404-links a { color: #c8a84b; font-weight: 700; }

/* ---------- טופס ליד ---------- */
.dt-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.dt-lead-msg { border-radius: 8px; padding: 10px 14px; font-size: .88rem; margin-bottom: 14px; }
.dt-lead-ok  { background: rgba(46,160,67,.15); color: #7ee29b; border: 1px solid rgba(46,160,67,.4); }
.dt-lead-err { background: rgba(200,60,60,.15); color: #f0a0a0; border: 1px solid rgba(200,60,60,.4); }

/* ---------- כפתורים צפים ---------- */
.dt-fabs { position: fixed; bottom: 22px; left: 22px; z-index: 9000; display: flex; flex-direction: column; gap: 12px; }
.dt-fab {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.45); transition: transform .18s;
}
.dt-fab:hover { transform: scale(1.08); }
.dt-fab svg { width: 26px; height: 26px; fill: #fff; }
.dt-fab-wa  { background: #25d366; }
.dt-fab-tel { background: #c8a84b; }
@media (max-width: 900px) {
  /* פס ה-CTA התחתון תופס את המקום בנייד */
  .dt-fabs { bottom: 84px; }
}

/* ---------- תיקון: הפוטר של דף הבית הוא grid ברוחב מלא ---------- */
.dt-footer { margin-top: 0; }

/* ============================================================
   תיקוני אינטגרציה — נמצאו באימות ויזואלי 20/07
   ============================================================ */

/* 1. ההדר והפוטר החדשים בנויים מ-<a>, וה-CSS המקורי צפה ל-span/button. */
.dt-header a, .dt-footer a, .dt-crumbs a, .dt-card-link,
.dt-fab, .btn-hero-primary, .btn-hero-secondary,
.btn-lead-wa, .btn-lead-phone, .dt-more-link a { text-decoration: none; }
.dt-header a:hover, .dt-footer a:hover { text-decoration: none; }

/* 2. ב-SPA ההדר היה fixed מעל הירו, ולכן ה-intro נשא ריפוד עליון ענק.
      כאן ההדר sticky ותופס מקום בעצמו — מסירים את הכפילות. */
.dt-page .catalog-intro { padding-top: 26px; }
.dt-page .dt-hero { margin-top: 0; }

/* 3. פס ה-CTA התחתון תוכנן לנייד בלבד. */
.dt-page .sticky-cta-bar { display: none; }
@media (max-width: 900px) {
  .dt-page .sticky-cta-bar { display: flex; }
  .dt-page .dt-fabs { display: none; }   /* אחרת שתי שכבות CTA זו על זו */
}

/* 4. הכרטיסים: תמונה בגובה אחיד כדי שהשורה לא תיראה שבורה. */
.dt-page .yad1-card-img, .dt-page .vehicle-card-img { height: 210px; background: #0f0f0f; }
.dt-page .yad1-card-img img, .dt-page .vehicle-card-img img { object-fit: contain; }

/* 5. הפוטר של דף הבית מיושר לרוחב מלא. */
.dt-footer { padding-inline: 5vw; }

/* 6. ה-catalog-screen נשא ריפוד עליון שנועד לפצות על הדר fixed — כאן מיותר. */
.dt-page .catalog-screen { padding-top: 18px; }

/* 7. ניווט בנייד — ה-CSS המקורי מסתיר את .hp-nav ומסתמך על המבורגר של ה-SPA,
      שלא קיים כאן. במקום לבנות המבורגר: שורת ניווט גלילה, תמיד נגישה. */
@media (max-width: 900px) {
  .dt-header { flex-wrap: wrap; height: auto; padding-bottom: 8px; row-gap: 6px; }
  .dt-header .hp-nav {
    display: flex !important;
    order: 3; width: 100%;
    gap: 16px; overflow-x: auto; -webkit-overflow-scrolling: touch;
    padding-bottom: 2px; scrollbar-width: none;
  }
  .dt-header .hp-nav::-webkit-scrollbar { display: none; }
  .dt-header .hp-nav-link { font-size: .82rem; white-space: nowrap; }
  .dt-header .hp-header-right { gap: 8px; }
}

/* ============================================================
   8. סרגלי סינון (הוחזרו 20/07 — נשמטו בגרסה הראשונה)
   .catalog-body כבר flex עם sidebar 224px; רק מיישרים את הרוחבים.
   ============================================================ */
.dt-toolbar, .dt-filters {
  max-width: 1280px; margin: 0 auto;
  padding-inline: var(--spacing-page-x, 5vw);
}
.dt-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.dt-body .dt-results { flex: 1; min-width: 0; }
.dt-body .dt-grid { max-width: none; margin: 0; padding: 0; }
.dt-toolbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 4px; }
.dt-toolbar .toolbar-right { margin-inline-start: auto; }
#dt-active-chips { display: flex; gap: 8px; flex-wrap: wrap; }
#dt-active-chips .remove { cursor: pointer; margin-inline-start: 4px; }

/* הסרגל בנייד — מתקפל, נפתח בכפתור "⚙ סינון" */
.y2-filter-toggle { display: none; }
@media (max-width: 900px) {
  .dt-body { flex-direction: column; }
  .dt-body .filter-sidebar { width: 100%; min-width: 0; display: none; }
  .dt-body .filter-sidebar.y2-open { display: block; }
  .y2-filter-toggle {
    display: flex; align-items: center; justify-content: space-between;
    width: calc(100% - 10vw); margin: 0 auto 12px;
    padding: 11px 15px; border-radius: 10px; cursor: pointer;
    background: var(--color-surface); border: 1px solid var(--color-border);
    color: var(--color-text-primary); font-family: inherit; font-size: .9rem; font-weight: 600;
  }
}

/* 9. כפתור החיוג הצף — נעלם כשהחזרתי את הצ'רום המקורי. מיקום: מתחת לנגישות. */
#dt-tel-fab {
  position: fixed; bottom: 12px; left: 24px; z-index: 99999;
  width: 48px; height: 48px; border-radius: 50%;
  background: #c8a84b; border: none; cursor: pointer;
  box-shadow: 0 4px 14px rgba(200,168,75,.5);
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s, box-shadow .2s; text-decoration: none;
}
#dt-tel-fab:hover { transform: scale(1.08); box-shadow: 0 6px 20px rgba(200,168,75,.65); }
#dt-tel-fab svg { width: 26px; height: 26px; fill: #fff; }
@media (max-width: 900px) {
  /* בנייד פס ה-CTA התחתון תופס את התחתית — מרימים את הטור */
  #dt-tel-fab  { bottom: 76px; }
  #dt-a11y-btn { bottom: 134px; }
  #dt-wa-fab   { bottom: 192px; }
}
