/* ============================================================
   AL NASSER LOCATION — Design system v2 (inspired by oneclickdrive)
   Palette :
     - #FF6A13  orange principal (accent CTA)
     - #E85A0C  orange hover
     - #0B1120  navy foncé (header/footer)
     - #F6F7FB  gris très clair (background)
     - #FFFFFF  blanc
     - #212121  texte
     - #7A8195  muted
   Typo :
     - Poppins (display, sans)  — moderne, lisible, largement utilisée
     - Cairo pour l'arabe
   ============================================================ */

:root {
  --bg: #F6F7FB;
  --bg-alt: #FFFFFF;
  --ink: #0B1120;
  --ink-2: #212121;
  --muted: #7A8195;
  --line: #E4E7EF;
  --accent: #FF6A13;
  --accent-2: #E85A0C;
  --accent-soft: #FFE8D6;
  --accent-rgb: 255,106,19;
  --white: #FFFFFF;
  --success: #17A34A;
  --danger:  #DC2626;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(11,17,32,.06), 0 2px 6px rgba(11,17,32,.04);
  --shadow-md: 0 8px 24px rgba(11,17,32,.08);
  --shadow-lg: 0 24px 48px rgba(11,17,32,.14);
  --font-sans: "Poppins", system-ui, -apple-system, sans-serif;
  --font-display: "Poppins", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink-2);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.rtl { font-family: "Cairo", var(--font-sans); direction: rtl; text-align: right; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.container { width: min(1240px, 92%); margin-inline: auto; }
.muted { color: var(--muted); }

h1, h2, h3, h4 { color: var(--ink); font-weight: 700; letter-spacing: -0.01em; margin: 0 0 .5em; line-height: 1.15; }
h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.15rem; }

/* -------------------- TOP BAR -------------------- */
.topbar {
  background: var(--ink);
  color: rgba(255,255,255,.85);
  font-size: .82rem;
  padding: 8px 0;
}
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.topbar a { color: rgba(255,255,255,.85); }
.topbar a:hover { color: var(--accent); }
.topbar .contact-strip { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar .contact-strip span i { color: var(--accent); margin-right: 6px; }
body.rtl .topbar .contact-strip span i { margin-right: 0; margin-left: 6px; }

/* -------------------- HEADER -------------------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; gap: 20px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; }
.brand-mark {
  width: 44px; height: 44px; display: grid; place-items: center;
  background: var(--accent); color: var(--white);
  border-radius: 12px; font-weight: 800; font-size: 1.1rem;
  box-shadow: 0 6px 16px rgba(var(--accent-rgb),.35);
}
.brand-name { font-size: 1.05rem; color: var(--ink); line-height: 1.1; }
.brand-name small { display: block; font-size: .7rem; font-weight: 500; color: var(--muted); letter-spacing: .05em; text-transform: uppercase; }

.nav-desktop { display: flex; gap: 28px; }
.nav-desktop a {
  color: var(--ink-2); font-weight: 500; font-size: .93rem;
  padding: 8px 2px; position: relative;
  transition: color .2s;
}
.nav-desktop a:hover, .nav-desktop a.active { color: var(--accent); }
.nav-desktop a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -18px; height: 3px; background: var(--accent);
}

.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--white); }
.lang-switch a { padding: 6px 12px; font-size: .82rem; font-weight: 600; color: var(--muted); }
.lang-switch a.active { background: var(--accent); color: var(--white); }

.menu-toggle { display: none; background: transparent; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; color: var(--ink); }

.nav-mobile { display: none; flex-direction: column; padding: 10px 0 16px; border-top: 1px solid var(--line); background: var(--white); }
.nav-mobile a { padding: 12px 24px; color: var(--ink-2); border-bottom: 1px solid var(--line); }
body.menu-open .nav-mobile { display: flex; }

@media (max-width: 960px) { .nav-desktop { display: none; } .menu-toggle { display: inline-flex; } .topbar { display: none; } }

/* -------------------- BUTTONS -------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: .93rem;
  border: 1px solid transparent; transition: transform .15s, background .2s, color .2s, box-shadow .2s;
  cursor: pointer;
}
.btn-primary { background: var(--accent); color: var(--white); box-shadow: 0 8px 20px rgba(var(--accent-rgb),.35); }
.btn-primary:hover { background: var(--accent-2); transform: translateY(-1px); box-shadow: 0 12px 24px rgba(var(--accent-rgb),.45); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: #1A2237; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost { background: var(--bg); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-block { width: 100%; }
.btn-lg { padding: 15px 28px; font-size: 1rem; }

/* -------------------- HERO + SEARCH -------------------- */
.hero {
  position: relative;
  min-height: 640px;
  background:
    linear-gradient(135deg, rgba(11,17,32,.72) 0%, rgba(11,17,32,.45) 60%, rgba(var(--accent-rgb),.2) 100%),
    url('https://images.unsplash.com/photo-1553440569-bcc63803a83d?w=1800&q=80') center/cover no-repeat;
  color: var(--white);
  padding: 80px 0 60px;
  display: flex;
  align-items: center;
}
.hero .container { width: min(1100px, 92%); }
.hero-eyebrow {
  display: inline-block; background: rgba(255,255,255,.14); backdrop-filter: blur(8px);
  color: var(--white); font-weight: 600; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 { color: var(--white); font-size: clamp(2.3rem, 4.6vw, 3.6rem); font-weight: 800; max-width: 20ch; }
.hero .lead { color: rgba(255,255,255,.85); font-size: 1.1rem; margin: 18px 0 30px; max-width: 46ch; }

.search-widget {
  background: var(--white); color: var(--ink);
  border-radius: 20px; padding: 22px;
  box-shadow: var(--shadow-lg);
  margin-top: 40px;
  border: 1px solid rgba(255,255,255,.4);
  max-width: 950px;
}
.search-tabs { display: flex; gap: 6px; margin-bottom: 18px; }
.search-tabs button {
  background: var(--bg); color: var(--muted); border: none;
  padding: 10px 22px; border-radius: 999px; font-weight: 600; font-size: .88rem;
}
.search-tabs button.active { background: var(--ink); color: var(--white); }
.search-fields {
  display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 14px; align-items: end;
}
.sf-field label {
  display: flex; align-items: center; gap: 6px;
  font-size: .74rem; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px;
}
.sf-field label i { color: var(--accent); }
.sf-field input, .sf-field select {
  width: 100%; padding: 13px 14px;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--white); font: inherit; color: var(--ink);
}
.sf-field input:focus, .sf-field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search-fields .btn { padding: 15px 28px; height: 48px; }
@media (max-width: 860px) {
  .search-fields { grid-template-columns: 1fr 1fr; }
  .search-fields .btn { grid-column: 1 / -1; }
  .hero { min-height: auto; padding: 60px 0 40px; }
}

/* -------------------- SECTIONS -------------------- */
.section { padding: 80px 0; }
.section-white { background: var(--white); }
.section-head { margin-bottom: 40px; text-align: center; }
.section-head .eyebrow {
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); font-weight: 700;
}
.section-head h2 { margin-top: 8px; }
.section-head p.muted { max-width: 60ch; margin: 8px auto 0; }

/* -------------------- CATEGORY TILES -------------------- */
.cat-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px;
}
.cat-tile {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 16px; padding: 22px 18px; text-align: center;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.cat-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.cat-tile .cat-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-size: 1.4rem;
}
.cat-tile h4 { margin: 0; font-size: .98rem; }
.cat-tile small { color: var(--muted); font-size: .82rem; }

/* -------------------- CAR CARDS -------------------- */
.cars-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.car-card {
  background: var(--white); border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line);
  transition: transform .25s, box-shadow .25s, border-color .25s;
  display: flex; flex-direction: column;
}
.car-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.car-card .thumb { aspect-ratio: 16/10; background: var(--bg-alt); overflow: hidden; position: relative; }
.car-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.car-card:hover .thumb img { transform: scale(1.06); }
.car-card .badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--accent); color: var(--white);
  padding: 5px 12px; border-radius: 999px; font-size: .7rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
}
body.rtl .car-card .badge { left: auto; right: 12px; }
.car-card .body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.car-card .title { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.car-card h3 { margin: 0; font-size: 1.1rem; color: var(--ink); }
.car-card .price { font-size: 1.05rem; color: var(--accent); font-weight: 700; white-space: nowrap; }
.car-card .price small { font-size: .72rem; color: var(--muted); font-weight: 500; }
.car-card .specs { display: flex; flex-wrap: wrap; gap: 8px 14px; color: var(--muted); font-size: .84rem; }
.car-card .specs span { display: inline-flex; align-items: center; gap: 6px; }
.car-card .specs i { color: var(--accent); }
.car-card .actions { margin-top: auto; display: flex; gap: 8px; }
.car-card .actions .btn { flex: 1; padding: 10px 14px; font-size: .86rem; }

/* -------------------- WHY US -------------------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.why-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 16px;
  padding: 32px 26px; text-align: left;
}
body.rtl .why-card { text-align: right; }
.why-card .icon {
  width: 60px; height: 60px; border-radius: 14px;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-size: 1.5rem;
  margin-bottom: 18px;
}
.why-card h3 { color: var(--ink); font-size: 1.1rem; }
.why-card p { color: var(--muted); margin: 0; font-size: .94rem; }
@media (max-width: 860px) { .why-grid { grid-template-columns: 1fr; } }

/* -------------------- REVIEWS -------------------- */
.reviews-section { background: var(--ink); color: var(--white); }
.reviews-section h2 { color: var(--white); }
.reviews-section .eyebrow { color: var(--accent); }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px; padding: 26px;
}
.review-card .stars { color: var(--accent); font-size: 1rem; margin-bottom: 12px; }
.review-card blockquote { margin: 0 0 18px; font-size: .95rem; line-height: 1.6; color: rgba(255,255,255,.9); }
.review-card .author { display: flex; align-items: center; gap: 12px; }
.review-card .avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--accent); color: var(--white); display: grid; place-items: center;
  font-weight: 700;
}
.review-card .name { font-weight: 600; color: var(--white); font-size: .95rem; }
.review-card .date { color: rgba(255,255,255,.55); font-size: .78rem; }
@media (max-width: 860px) { .reviews-grid { grid-template-columns: 1fr; } }

/* -------------------- HOW IT WORKS -------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.step {
  background: var(--white); border-radius: 16px; padding: 30px 26px;
  border: 1px solid var(--line); position: relative;
}
.step-number {
  position: absolute; top: -14px; left: 24px;
  background: var(--accent); color: var(--white); font-weight: 800;
  width: 32px; height: 32px; border-radius: 999px; display: grid; place-items: center;
  font-size: .95rem;
}
body.rtl .step-number { left: auto; right: 24px; }
.step h3 { margin-top: 10px; color: var(--ink); }
.step p { color: var(--muted); margin: 0; font-size: .93rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* -------------------- BLOG -------------------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.blog-card {
  background: var(--white); border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line);
  transition: transform .25s, box-shadow .25s;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.blog-card .thumb { aspect-ratio: 16/10; overflow: hidden; }
.blog-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog-card .body { padding: 22px 22px 26px; }
.blog-card .meta { color: var(--muted); font-size: .8rem; margin-bottom: 8px; }
.blog-card h3 { margin: 0 0 8px; font-size: 1.1rem; }
.blog-card p { color: var(--muted); font-size: .92rem; margin: 0 0 14px; }
.blog-card .read-more { color: var(--accent); font-weight: 600; font-size: .88rem; }
@media (max-width: 860px) { .blog-grid { grid-template-columns: 1fr; } }

.article-body { max-width: 780px; margin: 0 auto; font-size: 1.05rem; line-height: 1.75; color: var(--ink-2); }
.article-body h2 { margin-top: 32px; }
.article-body ul { padding-left: 22px; }
body.rtl .article-body ul { padding-left: 0; padding-right: 22px; }
.article-cover { width: 100%; max-height: 420px; object-fit: cover; border-radius: 16px; margin-bottom: 30px; }

/* -------------------- FAQ -------------------- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  margin-bottom: 12px; overflow: hidden;
}
.faq-q {
  padding: 18px 22px; font-weight: 600; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  color: var(--ink);
}
.faq-q i { color: var(--accent); transition: transform .2s; }
.faq-item.open .faq-q i { transform: rotate(180deg); }
.faq-a { padding: 0 22px; max-height: 0; overflow: hidden; transition: max-height .3s, padding .3s; color: var(--muted); line-height: 1.7; }
.faq-item.open .faq-a { padding: 0 22px 20px; max-height: 800px; }

/* -------------------- FORMS -------------------- */
.filters {
  background: var(--white); border: 1px solid var(--line); border-radius: 16px;
  padding: 20px; display: grid; grid-template-columns: repeat(5, 1fr) auto; gap: 12px;
  align-items: end; margin-bottom: 32px;
}
.filters label { display: block; font-size: .74rem; color: var(--muted); font-weight: 600; margin-bottom: 6px; text-transform: uppercase; letter-spacing: .06em; }
.filters select, .filters input {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--white); font: inherit; color: var(--ink);
}
.filters-with-dates { grid-template-columns: repeat(6, 1fr) auto auto; }
@media (max-width: 1100px) { .filters, .filters-with-dates { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 640px) { .filters, .filters-with-dates { grid-template-columns: 1fr 1fr; } }

.form-card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.form-card h2 { margin-top: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { margin-bottom: 14px; display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: .82rem; font-weight: 600; color: var(--ink); }
.form-group input, .form-group textarea, .form-group select {
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--white); font: inherit; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-summary {
  background: var(--bg); border-radius: 12px; padding: 14px 18px;
  display: flex; justify-content: space-between; margin: 14px 0 20px;
  font-size: 1rem; color: var(--ink); font-weight: 600;
}
.form-summary strong { color: var(--accent); }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

/* -------------------- ALERTS -------------------- */
.alert { padding: 14px 18px; border-radius: 12px; margin-bottom: 16px; }
.alert-success { background: #E7F7EC; color: var(--success); border: 1px solid #B8E6C6; }
.alert-error { background: #FEE7E7; color: var(--danger); border: 1px solid #F8C4C4; }
.alert-info { background: var(--bg); color: var(--ink); border: 1px solid var(--line); }

/* -------------------- TABLES -------------------- */
.table-wrap { overflow-x: auto; background: var(--white); border-radius: 16px; border: 1px solid var(--line); }
table.data { width: 100%; border-collapse: collapse; }
table.data th, table.data td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); font-size: .92rem; }
body.rtl table.data th, body.rtl table.data td { text-align: right; }
table.data th { background: var(--bg); color: var(--ink); font-weight: 600; text-transform: uppercase; font-size: .76rem; letter-spacing: .06em; }
table.data tr:last-child td { border-bottom: none; }
.status-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .76rem; font-weight: 600; }
.status-en_attente { background: #FEF3C7; color: #92400E; }
.status-confirmee { background: #D1FAE5; color: #065F46; }
.status-annulee { background: #FEE2E2; color: #991B1B; }
.status-terminee { background: #E5E7EB; color: #374151; }

/* -------------------- CAR DETAIL -------------------- */
.detail-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: start; }
.detail-media { border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-md); background: var(--white); }
.detail-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.detail-info h1 { font-size: 2rem; margin-bottom: 6px; color: var(--ink); }
.detail-info .brand-line { color: var(--muted); margin-bottom: 20px; }
.detail-info .price-tag {
  display: inline-flex; align-items: baseline; gap: 6px;
  background: var(--accent-soft); padding: 12px 20px; border-radius: 12px;
  margin: 12px 0 24px;
}
.detail-info .price-tag strong { font-size: 1.8rem; color: var(--accent); font-weight: 800; }
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 22px; margin: 20px 0 24px; }
.spec-grid .item { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.spec-grid .item span:first-child { color: var(--muted); }
.spec-grid .item span:last-child { font-weight: 600; color: var(--ink); }
@media (max-width: 860px) { .detail-grid { grid-template-columns: 1fr; } .spec-grid { grid-template-columns: 1fr; } }

.gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 10px; margin-top: 14px; }
.thumb-btn { padding: 0; border: 2px solid transparent; background: transparent; border-radius: 10px; overflow: hidden; cursor: pointer; aspect-ratio: 4/3; }
.thumb-btn img { width: 100%; height: 100%; object-fit: cover; }
.thumb-btn.active { border-color: var(--accent); }

/* -------------------- FOOTER -------------------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.75); padding: 70px 0 0; margin-top: 60px; }
.site-footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 18px; text-transform: uppercase; letter-spacing: .08em; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-brand { color: var(--white); margin-bottom: 14px; }
.footer-brand .brand-name { color: var(--white); }
.footer-desc { font-size: .9rem; line-height: 1.6; color: rgba(255,255,255,.7); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { padding: 6px 0; font-size: .9rem; }
.footer-links li i { color: var(--accent); margin-right: 10px; width: 16px; text-align: center; }
body.rtl .footer-links li i { margin-right: 0; margin-left: 10px; }
.footer-links a:hover { color: var(--accent); }
.footer-legal { color: rgba(255,255,255,.5); font-size: .78rem; line-height: 1.7; }
.footer-legal strong { color: rgba(255,255,255,.75); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 46px; padding: 20px 0; font-size: .82rem; color: rgba(255,255,255,.55); }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.social-icons { display: flex; gap: 10px; }
.social-icons a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.08); color: var(--white);
  display: grid; place-items: center; transition: background .2s;
}
.social-icons a:hover { background: var(--accent); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }

/* -------------------- WHATSAPP -------------------- */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 30;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: var(--white); display: grid; place-items: center;
  font-size: 1.7rem; box-shadow: 0 8px 24px rgba(37,211,102,.4);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
body.rtl .wa-float { right: auto; left: 24px; }

/* -------------------- ADMIN -------------------- */
.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; position: relative; }
.admin-sidebar { background: var(--ink); color: rgba(255,255,255,.75); padding: 24px 16px; }
.admin-sidebar .brand { display: flex; align-items: center; gap: 10px; }
.admin-sidebar .brand-name { color: var(--white); font-size: .95rem; }
.admin-sidebar .brand-mark { background: var(--accent); color: var(--white); }
.admin-sidebar-close {
  display: none; margin-left: auto; background: transparent; color: rgba(255,255,255,.7);
  border: 0; font-size: 1.2rem; cursor: pointer; padding: 6px 10px; border-radius: 8px;
}
.admin-sidebar-close:hover { background: rgba(255,255,255,.08); color: var(--white); }

.admin-menu-toggle {
  display: none; position: fixed; top: 14px; left: 14px; z-index: 40;
  background: var(--ink); color: var(--white); border: 0;
  width: 44px; height: 44px; border-radius: 10px; cursor: pointer;
  font-size: 1.2rem; box-shadow: 0 4px 12px rgba(0,0,0,.2);
  align-items: center; justify-content: center;
}
.admin-menu-toggle:hover { background: var(--accent); }

.admin-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5);
  z-index: 45; opacity: 0; transition: opacity .2s;
}
.admin-overlay.is-visible { display: block; opacity: 1; }

.admin-nav { display: flex; flex-direction: column; margin-top: 30px; gap: 4px; }
.admin-nav a {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 10px;
  color: rgba(255,255,255,.75); font-size: .92rem; transition: background .2s, color .2s;
}
.admin-nav a:hover, .admin-nav a.active { background: rgba(var(--accent-rgb),.15); color: var(--accent); }
.admin-nav a i { width: 20px; text-align: center; }
.admin-main { padding: 32px 40px; background: var(--bg); min-width: 0; }
.admin-main .page-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.admin-main h1 { font-size: 1.6rem; margin: 0; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 32px; }
.stat-card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.stat-card .lbl { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.stat-card .val { font-size: 2rem; color: var(--ink); margin-top: 6px; font-weight: 700; }

/* -------------------- UPCOMING WIDGET (dashboard) -------------------- */
.upcoming-widget {
  background: var(--white); border: 1px solid var(--line); border-radius: 16px;
  padding: 26px 28px; margin-bottom: 32px;
  border-left: 4px solid var(--accent);
}
.upcoming-widget.has-items {
  background: linear-gradient(180deg, #FFF7EF 0%, #FFFFFF 60%);
  box-shadow: 0 10px 30px rgba(var(--accent-rgb),.08);
}
.upcoming-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.uw-eyebrow { color: var(--accent); font-weight: 700; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 4px; }
.upcoming-header h2 { margin: 0; font-size: 1.35rem; }
.uw-count { background: var(--accent); color: var(--white); padding: 6px 14px; border-radius: 999px; font-size: .82rem; font-weight: 600; }
.uw-empty { text-align: center; padding: 30px 20px; color: var(--muted); }
.uw-empty i { font-size: 2rem; color: var(--accent); margin-bottom: 10px; display: block; }
.upcoming-list { display: flex; flex-direction: column; gap: 12px; }
.upcoming-card {
  display: grid; grid-template-columns: 90px 1fr auto; gap: 20px; align-items: center;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 18px; transition: transform .2s, border-color .2s;
}
.upcoming-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.upcoming-card.is-today { border-color: var(--accent); background: #FFF3E7; animation: pulse-today 2s ease-in-out infinite; }
@keyframes pulse-today {
  0%, 100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb),.35); }
  50%      { box-shadow: 0 0 0 8px rgba(var(--accent-rgb),0); }
}
.uc-when { text-align: center; }
.uc-when .uc-label { display: block; font-size: .68rem; font-weight: 700; letter-spacing: .1em; color: var(--muted); }
.upcoming-card.is-today .uc-when .uc-label { color: var(--accent); }
.uc-when .uc-date { display: block; font-size: 1.5rem; font-weight: 800; color: var(--ink); margin-top: 4px; }
.upcoming-card.is-today .uc-date { color: var(--accent); }
.uc-car { font-weight: 700; color: var(--ink); font-size: 1rem; }
.uc-client, .uc-period { color: var(--muted); font-size: .86rem; margin-top: 4px; }
.uc-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 720px) {
  .upcoming-card { grid-template-columns: 1fr; gap: 12px; }
  .uc-when { display: flex; gap: 10px; align-items: baseline; text-align: left; }
  .uc-when .uc-date { margin-top: 0; }
  .uc-actions { justify-content: flex-start; }
}
@media (max-width: 860px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-menu-toggle { display: inline-flex; }
  .admin-sidebar-close { display: inline-flex; }
  .admin-sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; width: 280px;
    z-index: 50; overflow-y: auto;
    transform: translateX(-100%); transition: transform .25s ease;
    padding-top: 20px;
  }
  .admin-sidebar.is-open { transform: translateX(0); box-shadow: 4px 0 24px rgba(0,0,0,.25); }
  .admin-main { padding: 74px 20px 20px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .stat-grid { grid-template-columns: 1fr; }
  .admin-main { padding: 70px 14px 14px; }
  .admin-main h1 { font-size: 1.3rem; }
  .table-wrap { overflow-x: auto; }
  .theme-grid { grid-template-columns: 1fr !important; }
}

/* -------------------- MAP -------------------- */
.map-wrap { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.map-wrap iframe { width: 100%; height: 400px; border: 0; display: block; }

/* -------------------- MISC -------------------- */
.pageblock { padding: 60px 0; }
.page-title { margin-bottom: 30px; text-align: center; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; }
.contact-info { display: flex; flex-direction: column; gap: 18px; }
.contact-info .item { display: flex; gap: 14px; align-items: flex-start; }
.contact-info .item i { color: var(--accent); font-size: 1.2rem; margin-top: 4px; }
.contact-info .item strong { display: block; color: var(--ink); font-weight: 600; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.breadcrumb { display: flex; gap: 8px; color: var(--muted); font-size: .84rem; margin-bottom: 24px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--line); }
