/* WMX Thrifty Full Site Skin (v2) */
:root{
  --wmx-blue:#0072CE;
  --wmx-blue-2:#0A86E6;
  --wmx-ink:#0b1220;
  --wmx-muted:#56657a;
  --wmx-magenta:#B0125B;
  --wmx-booking:#22d3ee;
  --wmx-wa:#22c55e;
  --wmx-card:#ffffff;
  --wmx-border:rgba(15,23,42,.12);
  --wmx-radius:26px;
  --wmx-shadow: 0 18px 55px rgba(15,23,42,.12);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:"Tajawal", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  color:var(--wmx-ink);
  background: radial-gradient(1100px 560px at 50% -10%, rgba(34,211,238,.26), transparent 58%),
             radial-gradient(1200px 720px at 0% 0%, rgba(0,114,206,.18), transparent 60%),
             linear-gradient(180deg, #f8fcff 0%, #ffffff 60%, #ffffff 100%);
}

a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto;display:block}

.wma-container{max-width:1240px;margin:0 auto;padding:18px 18px}
@media (min-width:1024px){ .wma-container{padding:22px 24px} }

.wma-card{
  background:var(--wmx-card);
  border:1px solid var(--wmx-border);
  border-radius:var(--wmx-radius);
  box-shadow:var(--wmx-shadow);
  backdrop-filter:none;
}

.wma-header{
  display:flex;align-items:center;justify-content:space-between;gap:14px;
  padding:14px 16px;
}
.wma-brand{display:flex;align-items:center;gap:12px;min-width:220px}
.wma-logo{width:52px;height:52px;object-fit:contain;border-radius:14px}
.wma-brand-text strong{display:block;font-size:18px;line-height:1.2}
.wma-brand-text span{display:block;font-size:13px;color:var(--wmx-muted);margin-top:2px}

.wma-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.wma-menu{display:flex;gap:10px;align-items:center;list-style:none;margin:0;padding:0}
.wma-menu a{display:inline-flex;align-items:center;justify-content:center;padding:11px 14px;font-size:15px;font-weight:800;letter-spacing:.2px;border-radius:999px;border:1px solid rgba(15,23,42,.10);background:#fff}
.wma-menu a:hover{border-color:rgba(0,114,206,.35)}

.wma-btn{
  display:inline-flex;align-items:center;gap:10px;
  padding:10px 14px;border-radius:999px;
  border:1px solid rgba(15,23,42,.12);
  background:#fff;
  font-weight:700;
}
.wma-btn:hover{border-color:rgba(0,114,206,.35)}
.wma-btn.primary{background:var(--wmx-booking);border-color:var(--wmx-booking);color:#00324d}
.wma-btn.blue{background:var(--wmx-blue);border-color:var(--wmx-blue);color:#fff}
.wma-btn.ghost{background:transparent;color:#fff;border-color:rgba(255,255,255,.35)}
.wma-btn.small{padding:9px 14px;font-size:15px}

/* On the homepage booking overlay: make the Fleet button use the booking accent (cyan) */
.wmx-book-card--overlay .wma-btn.ghost{
  background:var(--wmx-booking);
  border-color:var(--wmx-booking);
  color:#00324d;
}
.wmx-book-card--overlay .wma-btn.ghost:hover{filter:brightness(.98)}

main{padding-bottom:34px}

/* HOME */
.wmx-hero{
  position:relative;
  margin-top:16px;
  overflow:hidden;
  border-radius:34px;
  border:1px solid rgba(255,255,255,.18);
  box-shadow:0 26px 70px rgba(3,31,66,.35);
  min-height:360px;
}
.wmx-hero::before{
  content:"";
  position:absolute;inset:0;
  background:
    radial-gradient(900px 420px at 20% 20%, rgba(255,255,255,.25), transparent 60%),
    radial-gradient(900px 420px at 90% 60%, rgba(255,255,255,.12), transparent 60%),
    linear-gradient(90deg, rgba(0,114,206,.78), rgba(0,114,206,.42));
  pointer-events:none;
}
.wmx-hero-bg{
  position:absolute;inset:-6px;
  background-size:cover;
  /* show a nicer crop (less sky, more cars/mountain) */
  background-position:center 38%;
  filter:saturate(1.06) contrast(1.06);
  transform:scale(1.06);
  will-change:transform, opacity;
  animation:wmxKenBurns 18s ease-in-out infinite;
}
.wmx-hero-grid{
  position:absolute;inset:0;opacity:.12;mix-blend-mode:soft-light;
  background-image: linear-gradient(rgba(255,255,255,.22) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.22) 1px, transparent 1px);
  background-size: 56px 56px;
}
.wmx-hero-inner{
  position:relative;
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:18px;
  padding:22px;
  align-items:stretch;
}
@media (max-width:980px){
  .wmx-hero-inner{grid-template-columns:1fr}
}
.wmx-hero-copy{
  color:#fff;
  padding:18px 18px 10px;
  display:flex;flex-direction:column;justify-content:center;
}
.wmx-kickers{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:10px}
.wmx-pill{background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.25);color:#fff;border-radius:999px;padding:8px 12px;font-weight:800;font-size:12px}
.wmx-hero-title{font-size:44px;line-height:1.05;margin:6px 0 8px;font-weight:900;letter-spacing:-.5px}
@media (max-width:520px){.wmx-hero-title{font-size:34px}}
.wmx-hero-sub{margin:0;color:rgba(255,255,255,.92);font-size:15px;line-height:1.7;max-width:58ch}
.wmx-hero-ctas{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}

.wmx-book-card{
  align-self:center;
  background:#fff;
  border-radius:28px;
  padding:18px;
  border:1px solid rgba(255,255,255,.35);
  box-shadow: 0 30px 70px rgba(0,0,0,.18);
}
.wmx-book-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
.wmx-book-head strong{font-size:16px}
.wmx-book-head span{font-size:12px;color:var(--wmx-muted)}
.wmx-field{
  background:#fff;
  border:1px solid rgba(15,23,42,.12);
  border-radius:18px;
  padding:10px 12px;
  display:flex;align-items:center;gap:10px;
  margin-top:10px;
}
.wmx-field input{
  border:0;outline:0;width:100%;
  font-size:14px;font-family:inherit;
}
.wmx-hint{margin-top:10px;color:var(--wmx-muted);font-size:12px;line-height:1.6}
.wmx-book-actions{margin-top:18px;display:flex;gap:10px;flex-wrap:wrap}
.wmx-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:14px}
@media (max-width:520px){.wmx-stats{grid-template-columns:1fr}}
.wmx-stat{background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.22);border-radius:20px;padding:12px;color:#fff;text-align:center}
.wmx-stat b{display:block;font-size:18px}
.wmx-stat small{display:block;opacity:.9;margin-top:2px}

/* SECTION */
.wmx-section{padding:22px 0}
.wmx-section h2{margin:0 0 10px;font-size:22px}
.wmx-section p.lead{margin:0;color:var(--wmx-muted);line-height:1.7}

.wmx-grid-vehicles{
  display:grid;gap:14px;margin-top:14px;
  grid-template-columns:repeat(3,1fr);
}
@media (max-width:980px){.wmx-grid-vehicles{grid-template-columns:repeat(2,1fr)}}
@media (max-width:620px){.wmx-grid-vehicles{grid-template-columns:1fr}}
.wmx-vehicle-card{overflow:hidden}
.wmx-vehicle-thumb{aspect-ratio: 16/9;background:#e8eef7}
.wmx-vehicle-body{padding:14px}
.wmx-vehicle-title{font-weight:900;margin:0 0 6px}
.wmx-vehicle-meta{display:flex;gap:8px;flex-wrap:wrap;color:var(--wmx-muted);font-size:12px}
.wmx-vehicle-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}

/* FLEET / ARCHIVE */
.wmx-fleet-shell{padding:22px 0}
.wmx-fleet-top{
  color:#fff;
  display:flex;align-items:flex-end;justify-content:space-between;gap:14px;flex-wrap:wrap;
  margin-bottom:14px;
}
.wmx-fleet-top h1{margin:0;font-size:30px;font-weight:900}
.wmx-fleet-top p{margin:6px 0 0;color:rgba(255,255,255,.9)}
.wmx-fleet-layout{
  display:grid;gap:16px;
  grid-template-columns: 320px 1fr;
}
@media (max-width:980px){.wmx-fleet-layout{grid-template-columns:1fr}}
.wmx-filter-card{padding:16px;position:sticky;top:14px}
@media (max-width:980px){.wmx-filter-card{position:relative;top:auto}}
.wmx-filter-title{font-weight:900;margin:0 0 10px}
.wmx-filter-group{margin-top:12px}
.wmx-filter-group label{display:block;font-weight:800;font-size:12px;color:var(--wmx-muted);margin-bottom:6px}
.wmx-filter-row{display:flex;gap:8px;flex-wrap:wrap}
.wmx-chip{
  border:1px solid rgba(15,23,42,.12);
  background:#fff;
  padding:9px 12px;border-radius:999px;
  font-weight:800;font-size:12px;
}
.wmx-chip.is-active{border-color:var(--wmx-magenta);background:rgba(176,18,91,.08)}
.wmx-sort{width:100%;padding:11px 12px;border-radius:16px;border:1px solid rgba(15,23,42,.12);font-family:inherit}

.wmx-results{display:flex;flex-direction:column;gap:14px}
.wmx-result-card{display:grid;grid-template-columns: 260px 1fr 260px;gap:14px;padding:14px}
@media (max-width:980px){.wmx-result-card{grid-template-columns:1fr}}
.wmx-result-thumb{border-radius:22px;overflow:hidden;background:#e8eef7;min-height:170px}
.wmx-result-mid{padding-top:4px}
.wmx-result-mid h3{margin:0 0 6px;font-size:18px;font-weight:900}
.wmx-badges{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}
.wmx-badge{background:#f1f5fb;border:1px solid rgba(15,23,42,.10);border-radius:999px;padding:8px 10px;font-weight:800;font-size:12px;color:#243248}
.wmx-price{
  border-radius:22px;
  background:#f6f8fc;
  border:1px solid rgba(15,23,42,.10);
  padding:14px;
  display:flex;flex-direction:column;gap:10px;justify-content:center;
}
.wmx-price b{font-size:28px}
.wmx-price small{color:var(--wmx-muted)}
.wmx-price .wma-btn{justify-content:center}

/* Single Vehicle */
.wmx-single{
  padding:22px 0;
}
.wmx-single-grid{display:grid;grid-template-columns: 1.2fr .8fr;gap:16px}
@media (max-width:980px){.wmx-single-grid{grid-template-columns:1fr}}
.wmx-single-media{overflow:hidden}
.wmx-single-media .wma-card{padding:0;overflow:hidden}
.wmx-single-media img{width:100%;height:auto}
.wmx-single-info .wma-card{padding:16px}
.wmx-single-info h1{margin:0 0 10px;font-size:26px;font-weight:900}
.wmx-kv{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px}
@media (max-width:520px){.wmx-kv{grid-template-columns:1fr}}
.wmx-kv .wmx-badge{display:flex;justify-content:space-between}
.wmx-single-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}

/* Page content */
.wmx-page{padding:22px 0}
.wmx-page .wma-card{padding:18px}
.wmx-page h1{margin:0 0 10px;font-weight:900}

/* Footer */
.wmx-footer{
  padding:26px 0;
  background:#fff;
  border-top:1px solid rgba(15,23,42,.10);
  margin-top:28px;
}
.wmx-footer .wmx-foot-grid{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:16px;align-items:start}
@media (max-width:980px){.wmx-footer .wmx-foot-grid{grid-template-columns:1fr}}
.wmx-foot-title{font-weight:900;margin:0 0 10px}
.wmx-foot-muted{color:var(--wmx-muted);line-height:1.7;margin:0}
.wmx-foot-links a{display:block;padding:8px 0;color:var(--wmx-ink)}
.wmx-foot-links a:hover{color:var(--wmx-blue)}

/* Language modal (reuse existing JS) */
#wmaLangModal[hidden]{display:none !important}
#wmaLangModal{
  position:fixed;inset:0;z-index:9999;
  background:rgba(4,16,36,.35);
  display:flex;align-items:center;justify-content:center;
  padding:18px;
}
#wmaLangModal .wma-card{max-width:760px;width:100%;padding:16px}
#wmaLangModal h3{margin:0 0 10px;font-weight:900}
#wmaLangModal input{
  width:100%;
  padding:12px 14px;
  border-radius:16px;
  border:1px solid rgba(15,23,42,.12);
  outline:none;
  margin-bottom:10px;
  font-family:inherit;
}
#wmaLangGrid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
@media (max-width:520px){#wmaLangGrid{grid-template-columns:1fr}}
#wmaLangGrid a{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:12px 14px;border-radius:18px;
  border:1px solid rgba(15,23,42,.12);
  background:#fff;
  font-weight:900;
}
#wmaLangGrid a small{font-weight:700;color:var(--wmx-muted)}

/* Booking plugin skin */
.wma-booking{
  background:transparent;
  color:#fff;
  padding:22px 0 34px;
}
.wma-booking-card{
  max-width:980px;
  margin:0 auto;
  background:transparent;
}
.wma-booking-head{
  display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;
  margin-bottom:14px;
}
.wma-booking-title{
  font-size:28px;font-weight:900;margin:0;color:#fff;
}
.wma-booking-sub{color:rgba(255,255,255,.9);margin:6px 0 0;line-height:1.7}
.wma-stepper{
  display:flex;gap:10px;align-items:center;flex-wrap:wrap;
  color:rgba(255,255,255,.92);
  font-weight:900;
}
.wma-stepper .wma-step{
  display:flex;align-items:center;gap:8px;
}
.wma-stepper .dot{
  width:10px;height:10px;border-radius:50%;
  background:rgba(255,255,255,.35);
}
.wma-stepper .dot.active{background:#ffd54a}

.wma-booking-panel{
  background:#fff;
  border-radius:28px;
  border:1px solid rgba(255,255,255,.35);
  box-shadow: 0 30px 70px rgba(0,0,0,.18);
  overflow:hidden;
}
.wma-booking-panel .row{padding:16px;border-bottom:1px solid rgba(15,23,42,.10)}
.wma-booking-panel .row:last-child{border-bottom:0}

.wma-input, .wma-select{
  width:100%;
  padding:14px 14px;
  border-radius:18px;
  border:1px solid rgba(15,23,42,.12);
  outline:none;
  font-family:inherit;
  font-size:14px;
}
.wma-booking-actions{
  display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end;
  padding:16px;
}
.wma-booking-actions .wma-btn{justify-content:center}


/* ===== Full-bleed hero + overlay header (homepage) ===== */
.wma-site-header{position:relative;z-index:80;}
.wma-header-inner{max-width:1180px;margin:0 auto;padding:6px 10px;display:flex;align-items:center;justify-content:space-between;gap:12px;}
.wma-nav{flex:1;display:flex;justify-content:center;}
/* Overlay header sits *inside* the hero footprint (same width + centered) */
.wma-site-header--overlay{
  position:absolute;
  width:min(1240px, calc(100% - 32px));
  left:50%;
  right:auto;
  transform:translateX(-50%);
  /* push down slightly so it never looks clipped */
  top:18px;
  background:linear-gradient(135deg, rgba(255,255,255,.26), rgba(34,211,238,.14));
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  border:1px solid rgba(255,255,255,.38);
  border-radius:20px;
}

/* WP admin bar offset (when logged-in) */
.admin-bar .wma-site-header--overlay{top:calc(40px + 32px);} 
@media (max-width:782px){
  .admin-bar .wma-site-header--overlay{top:calc(40px + 46px);} 
}
body.wma-overlay-header .wma-brand-text strong,
body.wma-overlay-header .wma-brand-text span{color:rgba(15,23,42,.92);text-shadow:0 2px 14px rgba(0,0,0,.18);}
body.wma-overlay-header .wma-brand img{height:34px;width:auto;}

body.wma-overlay-header .wma-menu a{color:rgba(15,23,42,.90);border-color:rgba(15,23,42,.10);background:rgba(255,255,255,.32);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);padding:9px 14px;font-size:15px;font-weight:800;}
body.wma-overlay-header .wma-menu a:hover{background:rgba(255,255,255,.44);border-color:rgba(0,114,206,.28);}
body.wma-overlay-header .wma-btn.small{color:rgba(15,23,42,.92);border-color:rgba(15,23,42,.10);background:rgba(255,255,255,.30);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);}
body.wma-overlay-header .wma-btn.small:hover{background:rgba(255,255,255,.46);}

/* Hero (cinematic, not banner): constrained width for sharpness + taller for impact */
.wmx-hero--fullbleed{
  width:min(1480px, calc(100% - 28px));
  margin:18px auto 0;
  /* modern rounded hero edges */
  border-radius:44px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.12);
  box-shadow:0 30px 90px rgba(0,0,0,.18);
  /* taller so it feels like a hero, not a wide banner */
  /* slightly taller to show more of the image (less "wide banner" feel) */
  min-height:clamp(560px, 74vh, 860px);
}
@media (max-width: 860px){
  .wmx-hero--fullbleed{
    width:calc(100% - 18px);
    margin:12px auto 0;
    min-height:clamp(380px, 62vh, 560px);
    border-radius:30px;
  }

  /* Keep overlay header perfectly aligned with hero on small screens */
  .wma-site-header--overlay{width:calc(100% - 18px);top:18px;border-radius:16px;}
  .admin-bar .wma-site-header--overlay{top:calc(18px + 46px);} 
}

.wmx-hero--fullbleed::before{
  /* subtle top shading only (for header readability) */
  background:linear-gradient(to bottom, rgba(0,0,0,.28), rgba(0,0,0,.06) 40%, rgba(0,0,0,.10));
}
.wmx-hero-bg{
  transition:opacity 900ms ease;
  filter:none;
}
.wmx-hero--fullbleed .wmx-hero-bg{
  /* slightly higher focal point for wide banner images */
  background-position:center 44%;
}
.wmx-hero-bg.is-a{opacity:1;}
.wmx-hero-bg.is-b{opacity:0;}


.wma-btn.wa{background:var(--wmx-wa);border-color:var(--wmx-wa);color:#06210f}
.wma-btn.wa:hover{filter:brightness(.98)}



/* Hero overlay booking */
.wmx-hero{isolation:isolate;}
.wmx-hero::after{
  content:"";
  position:absolute;inset:0;
  background:radial-gradient(1200px 500px at 70% 30%, rgba(255,255,255,.14), transparent 60%),
             linear-gradient(180deg, rgba(0,0,0,.28), rgba(0,0,0,.08) 55%, rgba(0,0,0,.18));
  z-index:1;
  pointer-events:none;
}
.wmx-hero-bg{z-index:0;}
.wmx-hero-grid{z-index:2;opacity:.20;mix-blend-mode:overlay}
.wmx-hero-overlay{
  position:absolute;
  left:50%;
  bottom:22px;
  transform:translateX(-50%);
  width:min(920px, calc(100% - 28px));
  z-index:3;
}
.wmx-book-card--overlay{
  background:linear-gradient(135deg, rgba(255,255,255,.72), rgba(34,211,238,.18));
  border:1px solid rgba(255,255,255,.58);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
  padding:14px 14px 12px;
  border-radius:26px;
  box-shadow:0 26px 70px rgba(0,0,0,.20);
}
.wmx-book-title{
  font-weight:900;
  color:var(--wmx-ink);
  margin-bottom:10px;
  font-size:18px;
}
.wmx-book-row{
  display:grid;
  grid-template-columns: 1.15fr 1fr;
  gap:12px;
}
.wmx-book-actions{
  display:flex;
  gap:10px;
  justify-content:flex-end;
  flex-wrap:wrap;
  margin-top:18px;
}

/* Home hero search UI (blue card + white pill input) */
.wmx-book-card--search{
  background:linear-gradient(135deg, rgba(9,122,186,.95), rgba(6,96,160,.92));
  border:1px solid rgba(255,255,255,.18);
  padding:22px;
}
.wmx-book-card--search .wmx-book-btn,
.wmx-book-card--search .wmx-book-actions{display:none !important;}
.wmx-book-kicker{
  color:#fff;
  font-weight:900;
  font-size:22px;
  margin-bottom:14px;
  letter-spacing:.2px;
}
.wmx-book-search{
  background:#fff;
  border-radius:22px;
  padding:14px 14px 12px;
  box-shadow:0 18px 40px rgba(0,0,0,.16);
}
.wmx-search-label{
  font-weight:800;
  font-size:14px;
  color:#0b3a57;
  margin-bottom:8px;
  display:none;
}
.wmx-input-pill{
  margin:0;
  position:relative;
  display:flex;
  align-items:center;
  gap:10px;
  border:2px solid rgba(14,165,233,.38);
  border-radius:22px;
  /* single clean bar (no inner box) */
  padding:14px 56px 14px 16px;
  background:rgba(255,255,255,.92);
  box-shadow:0 16px 44px rgba(0,0,0,.10);
  overflow:visible;
}
html[dir="rtl"] .wmx-input-pill{padding:14px 16px 14px 56px;flex-direction:row-reverse;}

/* Floating label (Option B) */
.wmx-pill-toplabel{
  position:absolute;
  top:50%;
  inset-inline-start:16px;
  transform:translateY(-50%);
  font-size:16px;
  font-weight:900;
  color:rgba(11,58,87,.62);
  letter-spacing:.2px;
  pointer-events:none;
  user-select:none;
  transition:transform .18s ease, top .18s ease, font-size .18s ease, color .18s ease;
}
.wmx-input-pill:focus-within .wmx-pill-toplabel,
.wmx-input-pill.is-filled .wmx-pill-toplabel{
  top:10px;
  transform:none;
  font-size:12px;
  color:rgba(11,58,87,.82);
}

.wmx-input-prefix{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 12px;
  border-radius:14px;
  background:rgba(14,165,233,.10);
  border:1px solid rgba(14,165,233,.18);
  color:#0b3a57;
  font-weight:800;
  font-size:13px;
  white-space:nowrap;
}
/* The input itself must be transparent so we only see the big pill */
.wmx-input-pill input.wmx-pickup-input{
  width:100%;
  flex:1;
  min-width:0;
  border:0;
  outline:0;
  background:transparent;
  padding:0;
  line-height:1.2;
  font-size:16px;
  font-weight:700;
  color:#0b3a57;
  transition:padding .18s ease;
}
.wmx-input-pill:focus-within input.wmx-pickup-input,
.wmx-input-pill.is-filled input.wmx-pickup-input{
  /* push typed text below the floating label */
  padding-top:16px;
}
.wmx-input-pill input.wmx-pickup-input::placeholder{color:transparent;}
.wmx-input-icon{
  position:absolute;
  top:50%;
  right:12px;
  transform:translateY(-50%);
  width:34px;
  height:34px;
  border-radius:12px;
  border:0;
  background:rgba(14,165,233,.12);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}
html[dir="rtl"] .wmx-input-icon{right:auto;left:12px;}
.wmx-input-icon svg{width:18px;height:18px;opacity:.9}

.wmx-book-card--search .wmx-suggest{
  margin-top:10px;
  border-radius:16px;
  box-shadow:0 18px 40px rgba(0,0,0,.12);
  overflow:hidden;
}
.wmx-book-card--search .wmx-suggest-list button{
  padding:12px 12px;
}

@media (max-width: 860px){
  .wmx-book-card--search{padding:18px;}
  .wmx-book-kicker{font-size:20px;}
}
@media (max-width: 860px){
  .wmx-hero--fullbleed{min-height:clamp(320px, 46vh, 460px);}
  .wmx-book-row{grid-template-columns:1fr;}
  .wmx-book-actions{justify-content:stretch;}
  .wmx-book-actions .wma-btn{justify-content:center;flex:1;min-width:140px}
}
@media (max-width: 480px){
  .wmx-hero--fullbleed{min-height:clamp(300px, 44vh, 420px);border-radius:22px;}
  .wmx-hero-overlay{bottom:14px;width:calc(100% - 18px);}
  .wmx-book-card--overlay{border-radius:22px;padding:14px;box-shadow:0 24px 60px rgba(3,31,66,.18);}
}

/* Hero dots */
.wmx-hero-dots{
  position:absolute;
  left:50%;
  top:calc(100% - 14px);
  transform:translate(-50%, -100%);
  display:flex;
  gap:8px;
  z-index:3;
}
.wmx-hero-dot{
  width:10px;height:10px;border-radius:999px;
  border:1px solid rgba(255,255,255,.7);
  background:rgba(255,255,255,.25);
  cursor:pointer;
  padding:0;
}
.wmx-hero-dot.is-active{background:rgba(255,255,255,.9);}

/* Header scroll enhancement */
.wma-site-header{transition:background .25s ease, border-color .25s ease, box-shadow .25s ease;}
.wma-site-header.is-scrolled{background:linear-gradient(180deg, rgba(2,10,24,.72), rgba(2,10,24,.38)); box-shadow:0 14px 40px rgba(0,0,0,.18); border-bottom-color:rgba(255,255,255,.18);}


/* ===== Reveal animation ===== */
[data-wmx-reveal]{opacity:0;transform:translateY(16px) scale(.99);transition:opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1);}
[data-wmx-reveal].is-in{opacity:1;transform:none;}

/* ===== Latest vehicles (homepage) redesigned cards ===== */
.wmx-section--vehicles{padding:28px 0 10px;}
.wmx-section--vehicles h2{font-size:26px;letter-spacing:.2px;}
.wmx-section--vehicles p.lead{max-width:720px;}
.wmx-grid-vehicles{gap:18px;}

.wmx-veh{
  background:linear-gradient(180deg, rgba(255,255,255,.78), rgba(34,211,238,.08));
  border:1px solid rgba(15,23,42,.10);
  border-radius:28px;
  overflow:hidden;
  box-shadow:0 18px 55px rgba(15,23,42,.10);
  transform:translateY(0);
  transition:transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.wmx-veh:hover{
  transform:translateY(-6px);
  box-shadow:0 28px 80px rgba(15,23,42,.16);
  border-color:rgba(0,114,206,.22);
}
.wmx-veh-img{
  display:block;
  position:relative;
  aspect-ratio:16/10;
  background-size:cover;
  background-position:center;
}
.wmx-veh-img::after{
  content:"";
  position:absolute;inset:0;
  background:linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(3,31,66,.26));
  pointer-events:none;
}
.wmx-veh-body{padding:14px 16px 16px;}
.wmx-veh-title{margin:0 0 8px;font-size:16px;font-weight:900;line-height:1.35;}
.wmx-veh-title a{color:var(--wmx-text);text-decoration:none;}
.wmx-veh-title a:hover{color:var(--wmx-blue);}
.wmx-veh-meta{display:flex;gap:8px;flex-wrap:wrap;color:var(--wmx-muted);font-size:12px;margin-bottom:10px;}
.wmx-veh-meta span{background:rgba(255,255,255,.46);border:1px solid rgba(15,23,42,.08);padding:6px 10px;border-radius:999px;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);}
.wmx-status{font-weight:800;}

.wmx-veh-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;}
.wmx-price b{font-size:18px;}
.wmx-price small{color:var(--wmx-muted);margin-inline-start:6px;}
.wmx-veh-actions{display:flex;gap:10px;flex-wrap:wrap;}
.wmx-veh-actions .wma-btn.small{padding:9px 12px;border-radius:999px;}
.wmx-veh-actions .wma-btn.small.ghost{background:rgba(255,255,255,.36);}

@media (max-width:620px){
  .wmx-section--vehicles h2{font-size:22px;}
  .wmx-veh-body{padding:12px 14px 14px;}
}

/* ===== Glassy page sections ===== */
.wma-container{background:transparent;}
.wmx-section{position:relative;}



/* Saudi city suggestions (autocomplete) */
.wmx-suggest-host { position: relative; }
.wmx-suggest {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(0,0,0,.18);
  padding: 8px;
  max-height: 260px;
  overflow: auto;
}

/* In the hero, the search field is near the bottom edge. Open the dropdown upward to avoid clipping. */
.wmx-hero-overlay .wmx-field--suggest .wmx-suggest{
  top: auto;
  bottom: calc(100% + 10px);
}

.wmx-suggest-item{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 14px;
  font: inherit;
}

.wmx-suggest-item:hover{
  background: rgba(0, 180, 255, .14);
}

.wmx-suggest-main{
  font-weight: 700;
  color: #0b2330;
}

.wmx-suggest-sub{
  font-size: 12px;
  opacity: .72;
  color: #0b2330;
  white-space: nowrap;
}


/* === WMX Mobile-first SaaS Overrides === */
/* هدفها: تحويل تجربة الجوال إلى App-like + منع أي تمرير أفقي + تحسين الهيدر */
html, body { overflow-x: hidden; }
body { -webkit-text-size-adjust: 100%; }

:root{
  --wma-m-radius: 24px;
  --wma-m-gap: clamp(10px, 2.6vw, 16px);
  --wma-m-pad: clamp(12px, 3.4vw, 18px);
  --wma-m-font: clamp(14px, 3.6vw, 16px);
  --wma-m-font-lg: clamp(16px, 4.2vw, 20px);
}

@media (max-width: 820px){
  .wma-site-header--overlay{
    padding: calc(10px + env(safe-area-inset-top)) 10px 10px;
  }
  .wma-header-inner{
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 12px;
  }
  .wma-brand{
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }
  .wma-brand-title{
    font-size: var(--wma-m-font-lg);
    line-height: 1.1;
  }
  .wma-brand-sub{
    font-size: clamp(11px, 3vw, 13px);
  }
  .wma-nav{
    width: 100%;
  }
  .wma-menu{
    display: flex;
    gap: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 2px 6px;
    scrollbar-width: none;
  }
  .wma-menu::-webkit-scrollbar{ display:none; }
  .wma-menu li{ flex: 0 0 auto; }
  .wma-menu a{
    font-size: var(--wma-m-font);
    padding: 10px 14px;
    border-radius: 999px;
    white-space: nowrap;
  }
  .wma-lang{
    margin-inline: 0;
  }
  .wma-lang a{
    font-size: var(--wma-m-font);
    padding: 10px 14px;
    border-radius: 999px;
    white-space: nowrap;
  }
}

@media (max-width: 520px){
  .wma-site-header--overlay{
    border-radius: 26px;
    margin: 10px 10px 0;
    width: calc(100% - 20px);
  }
  .wma-header-inner{
    border-radius: 22px;
  }
  .wma-brand-logo{
    transform: scale(.92);
    transform-origin: center right;
  }
}
