/* עיצוב הקטלוג הציבורי. מותאם לטלפון קודם כול. הצבעים מוגדרים במשתנים למעלה, כדי שיהיה קל להחליף מיתוג. */
:root {
  --brand: #1d4ed8; --brand-dark: #1e3a8a; --navy: #0f172a; --accent: #f59e0b;
  --bg: #f1f5f9; --card: #fff; --text: #0f172a; --muted: #64748b; --line: #e2e8f0;
  --ok: #15803d; --warn: #c2410c; --sold: #b91c1c; --wa: #16a34a;
  --radius: 16px; --shadow: 0 1px 2px rgba(15,23,42,.06), 0 4px 14px rgba(15,23,42,.06); --shadow-lg: 0 10px 30px rgba(15,23,42,.14);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif; background: var(--bg); color: var(--text); line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--brand); }
img { max-width: 100%; display: block; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 18px; }

/* ── כותרת עליונה ── */
header.site { background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--navy); text-decoration: none; font-weight: 800; font-size: 1.2rem; }
.logo .mark { width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(135deg, var(--brand), #7c3aed); color: #fff; display: grid; place-items: center; font-size: 1.15rem; box-shadow: 0 4px 12px rgba(29,78,216,.35); }
header.site h1 { margin: 0; font-size: inherit; }
.contact { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: .92rem; text-decoration: none; border: 1px solid var(--line); color: var(--navy); background: #fff; }
.pill:hover { border-color: var(--brand); color: var(--brand); }
.pill.wa { background: var(--wa); border-color: var(--wa); color: #fff; }
.pill.wa:hover { background: #15803d; color: #fff; }

/* ── באנר ראשי ── */
.hero { background: radial-gradient(1200px 400px at 80% -10%, rgba(124,58,237,.45), transparent 60%), linear-gradient(135deg, var(--navy) 0%, var(--brand-dark) 55%, var(--brand) 100%); color: #fff; padding: 46px 0 86px; }
.hero h2 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); line-height: 1.2; margin: 0 0 10px; font-weight: 800; letter-spacing: -.5px; }
.hero p { margin: 0 0 18px; color: #cbd5e1; font-size: 1.05rem; max-width: 640px; }
.hero .stats { display: flex; gap: 10px; flex-wrap: wrap; }
.hero .stat { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 6px 14px; font-size: .92rem; }
.hero .stat b { color: var(--accent); }

/* ── חיפוש וסינון ── */
.filters { background: var(--card); border-radius: var(--radius); padding: 14px; margin: -56px 0 18px; box-shadow: var(--shadow-lg); position: relative; z-index: 2; }
.search-row { display: flex; gap: 8px; }
.search-row .q { flex: 1; font-size: 1.05rem; padding: 13px 44px 13px 14px; background: #f8fafc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%2364748b' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat right 14px center; }
.more-btn { display: none; }
.adv { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin-top: 10px; }
.filters input, .filters select { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff; color: var(--text); }
.filters input:focus, .filters select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(29,78,216,.15); }
@media (max-width: 640px) {
  .more-btn { display: inline-flex; }
  .adv { display: none; grid-template-columns: 1fr 1fr; }
  .filters.open .adv { display: grid; }
}
.bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 6px 0 12px; color: var(--muted); flex-wrap: wrap; }
.bar #count { font-weight: 700; color: var(--navy); }

/* ── כפתורים ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 11px 18px; border-radius: 12px; border: 0; background: var(--brand); color: #fff;
  font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; transition: transform .08s, background .15s; }
.btn:hover { background: var(--brand-dark); } .btn:active { transform: scale(.98); }
.btn.wa { background: var(--wa); } .btn.wa:hover { background: #15803d; }
.btn.light { background: #eef2ff; color: var(--brand); } .btn.light:hover { background: #e0e7ff; }
.btn.ghost { background: #fff; color: var(--navy); border: 1px solid var(--line); }
.btn.small { padding: 7px 12px; font-size: .9rem; border-radius: 10px; }

/* ── כרטיסי רכב ── */
section.strip h2 { font-size: 1.25rem; margin: 26px 0 12px; display: flex; align-items: center; gap: 8px; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); margin-bottom: 30px; }
.card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); position: relative; display: flex; flex-direction: column;
  color: inherit; text-decoration: none; transition: transform .18s, box-shadow .18s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card .img { aspect-ratio: 4 / 3; background: linear-gradient(135deg, #e2e8f0, #cbd5e1); overflow: hidden; position: relative; }
.card .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.card:hover .img img { transform: scale(1.05); }
.card .img .noimg { position: absolute; inset: 0; display: grid; place-items: center; font-size: 3rem; opacity: .4; }
.card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { margin: 0; font-size: 1.12rem; font-weight: 800; line-height: 1.3; }
.card .trim { color: var(--muted); font-size: .9rem; margin-top: -6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { background: #f1f5f9; color: #334155; border-radius: 8px; padding: 3px 9px; font-size: .84rem; font-weight: 600; white-space: nowrap; }
.card .foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
.card .more { color: var(--brand); font-weight: 700; font-size: .9rem; }
.price { font-size: 1.35rem; font-weight: 800; color: var(--navy); letter-spacing: -.3px; }
.price s { color: var(--muted); font-weight: 500; font-size: .9rem; margin-inline-start: 8px; }
.price.ask { font-size: 1.05rem; color: var(--brand); }
.tag { position: absolute; top: 12px; inset-inline-start: 12px; padding: 4px 12px; border-radius: 999px; font-size: .82rem; font-weight: 800; color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.tag.reserved { background: var(--warn); } .tag.sold { background: var(--sold); }
.tag.featured { background: linear-gradient(135deg, var(--accent), #ea580c); }
.tag.deal { background: linear-gradient(135deg, #e11d48, #be123c); }
.fav { position: absolute; top: 10px; inset-inline-end: 10px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.95);
  font-size: 1.25rem; cursor: pointer; color: var(--sold); box-shadow: 0 2px 8px rgba(0,0,0,.15); transition: transform .12s; }
.fav:hover { transform: scale(1.1); }
.empty { text-align: center; color: var(--muted); padding: 50px 0; grid-column: 1 / -1; font-size: 1.05rem; }

/* ── דף רכב ── */
.crumbs { margin: 18px 0 0; font-size: .92rem; color: var(--muted); }
.crumbs a { text-decoration: none; }
.car-page { display: grid; gap: 22px; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); margin: 14px 0 40px; align-items: start; }
@media (max-width: 900px) {
  .car-page { grid-template-columns: 1fr; }
  /* בטלפון: תמונות, אחריהן מחיר וכפתורים, ואז המפרט */
  .colmain { display: contents; }
  .colmain > .gallery { order: 1; } .side { order: 2; } .colmain > :not(.gallery) { order: 3; margin-top: 0 !important; }
}
.car-page > div { min-width: 0; }
.gallery .main { aspect-ratio: 4 / 3; background: #e2e8f0; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; position: relative; box-shadow: var(--shadow); }
.gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.gallery .counter { position: absolute; bottom: 12px; inset-inline-end: 12px; background: rgba(15,23,42,.7); color: #fff; padding: 3px 10px; border-radius: 999px; font-size: .85rem; }
.gallery .nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.92); color: var(--navy); border: 0; width: 44px; height: 44px;
  border-radius: 50%; font-size: 1.4rem; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.2); }
.gallery .nav.prev { inset-inline-start: 12px; } .gallery .nav.next { inset-inline-end: 12px; }
.thumbs { display: flex; gap: 8px; overflow-x: auto; margin-top: 10px; padding-bottom: 4px; }
.thumbs img { width: 92px; height: 69px; object-fit: cover; border-radius: 10px; cursor: pointer; opacity: .6; flex: none; transition: opacity .15s; }
.thumbs img.on, .thumbs img:hover { opacity: 1; }
.thumbs img.on { outline: 3px solid var(--brand); outline-offset: -3px; }
.panel { background: var(--card); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.panel + .panel { margin-top: 16px; }
.panel h2 { margin: 0 0 12px; font-size: 1.1rem; }
.side { position: sticky; top: 80px; }
@media (max-width: 900px) { .side { position: static; } }
.car-title { margin: 0; font-size: 1.6rem; font-weight: 800; line-height: 1.25; letter-spacing: -.4px; }
.car-sub { color: var(--muted); margin: 4px 0 14px; }
.side .price { font-size: 2rem; margin: 6px 0 4px; }
.keyspecs { display: grid; grid-template-columns: repeat(auto-fit, minmax(68px, 1fr)); gap: 8px; margin: 14px 0; }
.keyspecs > div { background: #f8fafc; border: 1px solid var(--line); border-radius: 12px; padding: 9px 6px; text-align: center; }
.keyspecs .i { font-size: 1.2rem; } .keyspecs .v { font-weight: 800; font-size: .98rem; } .keyspecs .l { color: var(--muted); font-size: .78rem; }
.actions { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; margin: 14px 0 4px; }
.actions .full { grid-column: 1 / -1; }
table.spec { width: 100%; border-collapse: collapse; }
table.spec td { padding: 9px 4px; border-bottom: 1px solid var(--line); }
table.spec tr:last-child td { border-bottom: 0; }
table.spec td:first-child { color: var(--muted); width: 45%; }
table.spec td:last-child { font-weight: 600; }
.features { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.features li { background: #ecfdf5; color: #047857; padding: 5px 12px; border-radius: 999px; font-size: .9rem; font-weight: 600; }
.features li::before { content: "✓ "; }
.video { aspect-ratio: 16 / 9; width: 100%; border: 0; border-radius: var(--radius); margin-top: 14px; box-shadow: var(--shadow); }
form.lead { display: grid; gap: 9px; }
form.lead input, form.lead textarea { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #f8fafc; }
form.lead input:focus, form.lead textarea:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px rgba(29,78,216,.15); }
.lead-box { background: linear-gradient(180deg, #eff6ff, #fff); border: 1px solid #dbeafe; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } /* שדה מלכודת לבוטים */
.notice { padding: 11px 14px; border-radius: 12px; background: #ecfdf5; color: var(--ok); font-weight: 600; }
.notice.err { background: #fef2f2; color: var(--sold); }
.notice.warn { background: #fff7ed; color: var(--warn); }
/* סרגל פעולות קבוע בתחתית המסך בטלפון */
.mobile-bar { display: none; }
@media (max-width: 900px) {
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; bottom: 0; inset-inline: 0; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-top: 1px solid var(--line); z-index: 40; box-shadow: 0 -4px 16px rgba(0,0,0,.08); }
  body.has-bar { padding-bottom: 76px; }
}
.lightbox { position: fixed; inset: 0; background: rgba(2,6,23,.94); display: flex; align-items: center; justify-content: center; z-index: 60; }
.lightbox img { max-width: 96vw; max-height: 90vh; object-fit: contain; border-radius: 6px; }
.lightbox button { position: absolute; background: rgba(255,255,255,.15); color: #fff; border: 0; width: 50px; height: 50px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; }
.lightbox .close { top: 14px; inset-inline-end: 14px; } .lightbox .prev { inset-inline-start: 14px; } .lightbox .next { inset-inline-end: 14px; }

/* ── תחתית ── */
footer.site { background: var(--navy); color: #94a3b8; padding: 30px 0; font-size: .93rem; margin-top: 30px; }
footer.site .cols { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
footer.site b { color: #fff; font-size: 1.05rem; }
footer.site a { color: #e2e8f0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ═════════ סגנון 2: "יוקרה" (רקע כהה וזהב). מופעל כשבהגדרות נבחר סגנון האתר "יוקרה" ═════════ */
[data-theme="luxury"] {
  --brand: #d4a54a; --brand-dark: #b8892f; --navy: #0b0b10; --accent: #e8c77a;
  --bg: #0b0b10; --card: #15151c; --text: #f4f1ea; --muted: #a39f96; --line: #2a2a33;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 6px 20px rgba(0,0,0,.35); --shadow-lg: 0 14px 40px rgba(0,0,0,.55);
}
[data-theme="luxury"] body { background: var(--bg); }
[data-theme="luxury"] header.site { background: rgba(11,11,16,.88); border-bottom-color: #22222b; }
[data-theme="luxury"] .logo { color: var(--text); letter-spacing: .5px; }
[data-theme="luxury"] .logo .mark { background: linear-gradient(135deg, #f0d58c, #b8892f); color: #111; box-shadow: 0 4px 14px rgba(212,165,74,.35); }
[data-theme="luxury"] .pill { background: transparent; color: var(--text); border-color: #3a3a44; }
[data-theme="luxury"] .pill:hover { color: var(--brand); border-color: var(--brand); }
[data-theme="luxury"] .pill.wa { background: var(--wa); border-color: var(--wa); color: #fff; }
[data-theme="luxury"] .hero { background: radial-gradient(900px 380px at 15% 0%, rgba(212,165,74,.22), transparent 60%), linear-gradient(180deg, #121219, #0b0b10);
  border-bottom: 1px solid #22222b; padding: 64px 0 96px; text-align: center; }
[data-theme="luxury"] .hero h2 { font-weight: 300; letter-spacing: 1px; font-size: clamp(1.9rem, 5vw, 3rem); }
[data-theme="luxury"] .hero h2::after { content: ""; display: block; width: 70px; height: 2px; background: linear-gradient(90deg, transparent, var(--brand), transparent); margin: 16px auto 0; }
[data-theme="luxury"] .hero p { margin-inline: auto; color: var(--muted); }
[data-theme="luxury"] .hero .stats { justify-content: center; }
[data-theme="luxury"] .hero .stat { background: transparent; border-color: #3a3a44; color: var(--text); }
[data-theme="luxury"] .hero .stat b { color: var(--brand); }
[data-theme="luxury"] .filters { background: #15151c; border: 1px solid #2a2a33; }
[data-theme="luxury"] .filters input, [data-theme="luxury"] .filters select,
[data-theme="luxury"] form.lead input, [data-theme="luxury"] form.lead textarea { background-color: #0f0f15; color: var(--text); border-color: #2f2f39; }
[data-theme="luxury"] .search-row .q { background-color: #0f0f15; }
[data-theme="luxury"] .btn { color: #111; }
[data-theme="luxury"] .btn.wa { color: #fff; }
[data-theme="luxury"] .btn.light, [data-theme="luxury"] .btn.ghost { background: transparent; color: var(--brand); border: 1px solid #4a4030; }
[data-theme="luxury"] .btn.light:hover, [data-theme="luxury"] .btn.ghost:hover { background: rgba(212,165,74,.1); }
[data-theme="luxury"] .bar #count { color: var(--text); }
[data-theme="luxury"] .card { border: 1px solid #22222b; }
[data-theme="luxury"] .card:hover { border-color: #4a4030; }
[data-theme="luxury"] .card .img { background: linear-gradient(135deg, #1d1d26, #121219); }
[data-theme="luxury"] .card h3 { font-weight: 600; letter-spacing: .3px; }
[data-theme="luxury"] .chip { background: #1e1e27; color: #cfcac0; }
[data-theme="luxury"] .card .foot { border-top-color: #26262f; }
[data-theme="luxury"] .price { color: var(--brand); }
[data-theme="luxury"] .tag.featured { background: linear-gradient(135deg, #f0d58c, #b8892f); color: #111; }
[data-theme="luxury"] .fav { background: rgba(21,21,28,.9); color: var(--brand); }
[data-theme="luxury"] .gallery .main { background: #15151c; }
[data-theme="luxury"] .gallery .nav { background: rgba(21,21,28,.85); color: var(--brand); }
[data-theme="luxury"] .keyspecs > div { background: #0f0f15; border-color: #2a2a33; }
[data-theme="luxury"] .features li { background: rgba(212,165,74,.1); color: var(--accent); }
[data-theme="luxury"] .lead-box { background: linear-gradient(180deg, #1a1812, #15151c); border-color: #3a3324; }
[data-theme="luxury"] .notice { background: rgba(21,128,61,.18); color: #86efac; }
[data-theme="luxury"] .notice.err { background: rgba(185,28,28,.18); color: #fca5a5; }
[data-theme="luxury"] .notice.warn { background: rgba(194,65,12,.18); color: #fdba74; }
[data-theme="luxury"] .mobile-bar { background: rgba(11,11,16,.95); border-top-color: #22222b; }
[data-theme="luxury"] footer.site { background: #08080c; border-top: 1px solid #1d1d25; }
[data-theme="luxury"] footer.site b { color: var(--brand); }

/* ── דף "עלינו" והקטע "למה אצלנו" ── */
.about-hero { padding-bottom: 60px; }
.about-hero p { font-size: 1.15rem; }
.section-title { font-size: 1.5rem; font-weight: 800; margin: 34px 0 14px; text-align: center; }
.section-sub { text-align: center; color: var(--muted); margin: -8px 0 18px; }
.story { font-size: 1.08rem; line-height: 1.8; white-space: pre-line; margin-top: -30px; position: relative; z-index: 2; }
.values-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.value { background: var(--card); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); text-align: center; }
.value .vi { width: 54px; height: 54px; margin: 0 auto 10px; border-radius: 16px; display: grid; place-items: center; font-size: 1.6rem;
  background: linear-gradient(135deg, rgba(29,78,216,.12), rgba(124,58,237,.12)); }
.value h3 { margin: 0 0 6px; font-size: 1.08rem; } .value p { margin: 0; color: var(--muted); font-size: .95rem; }
.tst-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.tst { background: var(--card); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); position: relative; }
.tst::before { content: "”"; position: absolute; top: -6px; inset-inline-start: 14px; font-size: 4rem; color: var(--brand); opacity: .18; font-family: Georgia, serif; }
.tst p { margin: 6px 0 12px; white-space: pre-line; }
.tst .who { font-weight: 700; } .tst .car { color: var(--muted); font-size: .88rem; }
.stars { color: #f59e0b; letter-spacing: 2px; font-size: 1.05rem; }
.stats-row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin-top: 18px; }
.stats-row div { background: var(--card); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); text-align: center; }
.stats-row b { display: block; font-size: 2rem; color: var(--brand); font-weight: 800; }
.cta { background: linear-gradient(135deg, var(--brand-dark), var(--brand)); color: #fff; border-radius: var(--radius); padding: 26px; text-align: center; margin: 34px 0; }
.cta h2 { margin: 0 0 12px; } .cta .btn { background: #fff; color: var(--brand-dark); margin: 4px; } .cta .btn.wa { background: var(--wa); color: #fff; }
.review-form { max-width: 640px; margin: 0 auto; }
.review-form select { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #f8fafc; }
[data-theme="luxury"] .value .vi { background: rgba(212,165,74,.12); }
[data-theme="luxury"] .tst::before { color: var(--brand); }
[data-theme="luxury"] .cta { background: linear-gradient(135deg, #1a1812, #2a2316); border: 1px solid #4a4030; }
[data-theme="luxury"] .cta .btn { background: var(--brand); color: #111; }
[data-theme="luxury"] .review-form select { background: #0f0f15; color: var(--text); border-color: #2f2f39; }
