
/* Persian webfont setup
   To use licensed IranSans on every phone:
   1) Put your legal font files here:
      assets/fonts/IRANSansWeb.woff2
      assets/fonts/IRANSansWeb_Bold.woff2
   2) The CSS below will load them automatically.
   Vazirmatn is included as an online fallback for phones when IranSans files are not uploaded yet.
*/
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700;800;900&display=swap');

@font-face{
  font-family:'IRANSansWeb';
  src:url('assets/fonts/IRANSansWeb.woff2') format('woff2');
  font-weight:400;
  font-style:normal;
  font-display:swap;
}
@font-face{
  font-family:'IRANSansWeb';
  src:url('assets/fonts/IRANSansWeb_Bold.woff2') format('woff2');
  font-weight:700 900;
  font-style:normal;
  font-display:swap;
}

/*
Theme Name: Ajili Car
Theme URI: https://example.com/ajili-car
Author: Ajili Car Design
Description: Luxury RTL WordPress theme for Ajili Car showroom: classic and modern car listings with custom post type.
Version: 2.3.2
Text Domain: ajili-car
*/

/* Font note: IRANSans font-family is set globally. Upload/license the font separately if needed. */
:root{
  --bg:#050505;
  --panel:#0d0f0d;
  --panel2:#121711;
  --gold:#d4b15a;
  --gold2:#f0d482;
  --green:#0d3b1e;
  --green2:#174f2a;
  --text:#ffffff;
  --muted:#b8b8b8;
  --line:rgba(212,177,90,.22);
  --shadow:0 28px 80px rgba(0,0,0,.55);
  --radius:24px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;direction:rtl;background:var(--bg);color:var(--text);font-family:"IRANSansWeb","IRANSans","Iran Sans","IranSans","Vazirmatn",Tahoma,Arial,sans-serif;line-height:1.9;overflow-x:hidden}
a{color:inherit;text-decoration:none}.container{width:min(1180px,92vw);margin-inline:auto}.accent{color:var(--gold)}
.site-header{position:sticky;top:0;z-index:99;background:rgba(0,0,0,.78);backdrop-filter:blur(16px);border-bottom:1px solid var(--line)}
.header-inner{height:92px;display:flex;align-items:center;justify-content:space-between;gap:24px}.brand{display:flex;align-items:center;gap:14px}.brand img{width:170px;height:auto;display:block}.brand-title{font-size:13px;color:var(--muted);letter-spacing:.4px}.nav{display:flex;align-items:center;gap:28px;font-size:15px;color:#e9e9e9}.nav a{transition:.25s}.nav a:hover{color:var(--gold)}.header-actions{display:flex;align-items:center;gap:12px}.phone{font-weight:700;color:var(--gold);direction:ltr}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--gold);border-radius:999px;padding:12px 22px;font-weight:700;transition:.25s;white-space:nowrap}.btn-gold{background:linear-gradient(135deg,var(--gold),var(--gold2));color:#0b0b0b;box-shadow:0 10px 25px rgba(212,177,90,.22)}.btn-gold:hover{transform:translateY(-2px)}.btn-outline:hover{background:rgba(212,177,90,.12);transform:translateY(-2px)}
.hero{position:relative;min-height:760px;display:flex;align-items:center;background:#020202;overflow:hidden}.hero:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,0,0,.78) 0%,rgba(0,0,0,.48) 48%,rgba(0,0,0,.70) 100%),linear-gradient(180deg,rgba(0,0,0,.18),rgba(0,0,0,.56)),url('assets/img/showroom-hero.jpg') center center / cover no-repeat;opacity:1;filter:brightness(.92) saturate(.95)}.hero:after{content:"";position:absolute;right:-140px;bottom:-160px;width:760px;height:360px;border:1px solid rgba(212,177,90,.28);border-radius:60% 40% 0 0;transform:rotate(-8deg);opacity:.35}.hero-content{position:relative;z-index:2;width:min(780px,100%);padding:88px 0}.eyebrow{display:inline-flex;align-items:center;gap:10px;border:1px solid var(--line);background:rgba(212,177,90,.10);color:var(--gold2);border-radius:999px;padding:7px 16px;font-size:13px;margin-bottom:18px}.hero h1{text-shadow:0 10px 30px rgba(0,0,0,.45);font-size:clamp(42px,7vw,84px);line-height:1.15;margin:0 0 18px;font-weight:900;letter-spacing:-1.5px}.hero p{font-size:20px;color:#ececec;max-width:680px;margin:0 0 32px;text-shadow:0 4px 18px rgba(0,0,0,.4)}.hero-buttons{display:flex;gap:14px;flex-wrap:wrap}.stats{position:relative;z-index:2;display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:48px;max-width:760px}.stat{background:rgba(13,15,13,.68);backdrop-filter:blur(6px);border:1px solid var(--line);border-radius:22px;padding:20px;box-shadow:var(--shadow)}.stat strong{display:block;font-size:28px;color:var(--gold)}.stat span{color:#d0d0d0;font-size:14px}
.section{padding:96px 0}.section-head{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:34px}.section-title{margin:0;font-size:clamp(28px,4vw,46px);line-height:1.35}.section-sub{margin:8px 0 0;color:var(--muted);max-width:650px}.cars-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}.car-card{background:linear-gradient(180deg,var(--panel2),#070807);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);transition:.28s}.car-card:hover{transform:translateY(-6px);border-color:rgba(212,177,90,.55)}.car-img{height:235px;background:linear-gradient(135deg,#1b1b1b,#07140c 52%,#111);position:relative;overflow:hidden}.car-img:before{content:"";position:absolute;left:10%;right:10%;bottom:38%;height:70px;border:8px solid rgba(212,177,90,.55);border-bottom:none;border-radius:140px 140px 0 0}.car-img:after{content:"";position:absolute;left:16%;right:16%;bottom:24%;height:34px;background:rgba(255,255,255,.05);border:1px solid rgba(212,177,90,.22);border-radius:80px}.badge{position:absolute;top:16px;right:16px;background:rgba(212,177,90,.94);color:#080808;border-radius:999px;padding:5px 13px;font-weight:800;font-size:12px}.car-body{padding:24px}.car-body h3{margin:0 0 8px;font-size:22px}.meta{display:grid;grid-template-columns:repeat(2,1fr);gap:8px 12px;color:var(--muted);font-size:14px;margin:18px 0}.price{color:var(--gold2);font-weight:900;font-size:19px;margin-bottom:16px}.mini-btn{display:inline-flex;border-bottom:1px solid var(--gold);color:var(--gold);font-weight:800}
.categories{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.cat-card{position:relative;min-height:230px;background:linear-gradient(160deg,#101410,#050505);border:1px solid var(--line);border-radius:var(--radius);padding:28px;overflow:hidden}.cat-card:before{content:"";position:absolute;inset:auto -60px -90px auto;width:210px;height:210px;border-radius:50%;background:rgba(212,177,90,.12)}.cat-card h3{margin:0 0 10px;font-size:24px;color:var(--gold2)}.cat-card p{margin:0;color:var(--muted)}
.about-wrap{display:grid;grid-template-columns:1.05fr .95fr;gap:44px;align-items:center}.about-panel{background:linear-gradient(180deg,#101510,#070807);border:1px solid var(--line);border-radius:34px;padding:42px;box-shadow:var(--shadow)}.about-panel p{color:#d6d6d6;margin:0 0 22px}.about-visual{min-height:500px;border-radius:34px;background:radial-gradient(circle at 28% 26%,rgba(212,177,90,.2),transparent 28%),linear-gradient(145deg,#040404,#102016);border:1px solid var(--line);position:relative;overflow:hidden}.about-visual img{position:absolute;inset:0;margin:auto;width:72%;opacity:.88}.why-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.why{background:#0b0d0b;border:1px solid var(--line);border-radius:22px;padding:24px}.why b{display:block;color:var(--gold2);font-size:18px;margin-bottom:8px}.why span{color:var(--muted);font-size:14px}
.contact-strip{background:linear-gradient(135deg,#09160d,#050505);border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:58px 0}.contact-inner{display:flex;align-items:center;justify-content:space-between;gap:28px}.contact-inner h2{margin:0;font-size:34px}.contact-info{color:var(--muted);margin-top:8px}.contact-info span{color:#fff}.footer{padding:42px 0;background:#020202;color:var(--muted)}.footer-inner{display:flex;justify-content:space-between;gap:24px;align-items:center}.socials{display:flex;gap:14px;color:var(--gold)}
.archive-hero{padding:70px 0 35px;background:linear-gradient(180deg,#071008,#020202);border-bottom:1px solid var(--line)}.filters{display:flex;flex-wrap:wrap;gap:12px;margin:20px 0 36px}.filters span{border:1px solid var(--line);border-radius:999px;padding:9px 16px;color:var(--muted)}.single-wrap{display:grid;grid-template-columns:1.1fr .9fr;gap:34px;padding:76px 0}.gallery-box{min-height:520px;border-radius:34px;background:linear-gradient(135deg,#111,#07140c);border:1px solid var(--line);position:relative;overflow:hidden}.gallery-box:before{content:"";position:absolute;left:10%;right:10%;bottom:42%;height:110px;border:12px solid rgba(212,177,90,.55);border-bottom:0;border-radius:220px 220px 0 0}.details-box{background:var(--panel);border:1px solid var(--line);border-radius:34px;padding:34px}.specs{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-top:24px}.spec{background:#070807;border:1px solid rgba(255,255,255,.07);border-radius:16px;padding:13px}.spec small{display:block;color:var(--muted)}.spec b{color:#fff}
@media(max-width:980px){.nav{display:none}.header-inner{height:78px}.brand img{width:132px}.hero{min-height:auto}.hero-content{padding:86px 0}.stats,.cars-grid,.categories,.why-grid{grid-template-columns:1fr 1fr}.about-wrap,.single-wrap{grid-template-columns:1fr}.contact-inner,.footer-inner,.section-head{align-items:flex-start;flex-direction:column}.about-visual{min-height:340px}}
@media(max-width:620px){.header-actions .phone{display:none}.hero h1{font-size:42px}.hero p{font-size:17px}.stats,.cars-grid,.categories,.why-grid,.specs{grid-template-columns:1fr}.section{padding:66px 0}.car-img{height:210px}.contact-inner h2{font-size:27px}}


/* Mobile polish */
@media(max-width:980px){
  body{
    font-family:"IRANSansWeb","IRANSans","IRANSansX","Iran Sans","IranSans","Vazirmatn",Tahoma,Arial,sans-serif;
    -webkit-text-size-adjust:100%;
  }
  .site-header{
    position:fixed;
    top:0;
    left:0;
    right:0;
    background:rgba(0,0,0,.88);
    backdrop-filter:blur(14px);
  }
  .header-inner{
    height:auto;
    min-height:72px;
    padding:10px 0;
    gap:10px;
  }
  .brand{
    min-width:0;
    gap:8px;
  }
  .brand img{
    width:116px;
  }
  .brand-title{
    display:none;
  }
  .header-actions{
    gap:8px;
  }
  .header-actions .btn{
    padding:9px 12px;
    font-size:12px;
  }
  .nav{
    display:none;
  }
  .hero{
    min-height:100vh;
    padding-top:76px;
    align-items:flex-end;
  }
  .hero:before{
    background:
      linear-gradient(180deg,rgba(0,0,0,.34) 0%,rgba(0,0,0,.46) 34%,rgba(0,0,0,.88) 100%),
      linear-gradient(90deg,rgba(0,0,0,.50),rgba(0,0,0,.20),rgba(0,0,0,.56)),
      url('assets/img/showroom-hero.jpg') center top / cover no-repeat;
    filter:brightness(.95) saturate(.95);
  }
  .hero:after{
    display:none;
  }
  .hero-content{
    width:100%;
    padding:120px 0 44px;
  }
  .eyebrow{
    font-size:12px;
    padding:5px 12px;
    margin-bottom:12px;
  }
  .hero h1{
    font-size:clamp(34px,10vw,48px);
    line-height:1.28;
    letter-spacing:-.8px;
    margin-bottom:14px;
    max-width:96%;
  }
  .hero p{
    font-size:15.5px;
    line-height:2;
    max-width:96%;
    margin-bottom:22px;
    color:#f0f0f0;
  }
  .hero-buttons{
    gap:10px;
  }
  .hero-buttons .btn{
    flex:1 1 145px;
    padding:11px 14px;
    font-size:13px;
  }
  .stats{
    grid-template-columns:1fr;
    gap:10px;
    margin-top:24px;
    max-width:100%;
  }
  .stat{
    padding:14px 16px;
    border-radius:16px;
  }
  .stat strong{
    font-size:20px;
  }
  .stat span{
    font-size:12.5px;
  }
}

@media(max-width:620px){
  .container{
    width:min(92vw,420px);
  }
  .site-header .container{
    width:92vw;
  }
  .header-inner{
    justify-content:space-between;
  }
  .header-actions .phone{
    display:none;
  }
  .header-actions .btn{
    display:none;
  }
  .brand img{
    width:124px;
  }
  .hero{
    min-height:690px;
  }
  .hero:before{
    background:
      linear-gradient(180deg,rgba(0,0,0,.26) 0%,rgba(0,0,0,.48) 36%,rgba(0,0,0,.92) 100%),
      linear-gradient(90deg,rgba(0,0,0,.40),rgba(0,0,0,.15),rgba(0,0,0,.54)),
      url('assets/img/showroom-hero.jpg') center top / auto 100% no-repeat;
    filter:brightness(1) saturate(.95);
  }
  .hero-content{
    padding:160px 0 34px;
  }
  .hero h1{
    font-size:34px;
    line-height:1.38;
  }
  .hero p{
    font-size:14.5px;
    line-height:2;
  }
  .stats{
    display:none;
  }
  .section{
    padding:54px 0;
  }
  .section-title{
    font-size:28px;
  }
  .section-sub{
    font-size:14px;
  }
  .cars-grid,
  .categories,
  .why-grid,
  .specs{
    grid-template-columns:1fr;
  }
  .car-card,
  .cat-card,
  .why,
  .about-panel,
  .details-box{
    border-radius:18px;
  }
  .car-img{
    height:190px;
  }
  .about-panel{
    padding:26px 22px;
  }
  .about-visual{
    min-height:260px;
    border-radius:22px;
  }
  .contact-strip{
    padding:42px 0;
  }
  .contact-inner h2{
    font-size:24px;
    line-height:1.5;
  }
  .footer-inner{
    font-size:13px;
  }
}

button,input,textarea,select{font-family:inherit}


/* Mobile menu fix */
@media(max-width:980px){
  .site-header{
    overflow:visible;
  }
  .header-inner{
    flex-wrap:wrap;
    align-items:center;
  }
  .nav{
    display:flex !important;
    order:3;
    width:100%;
    gap:8px;
    overflow-x:auto;
    overflow-y:hidden;
    white-space:nowrap;
    padding:8px 0 4px;
    margin-top:2px;
    scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
    justify-content:flex-start;
  }
  .nav::-webkit-scrollbar{
    display:none;
  }
  .nav a{
    flex:0 0 auto;
    font-size:13px;
    line-height:1;
    padding:9px 12px;
    border:1px solid rgba(212,177,90,.24);
    border-radius:999px;
    background:rgba(255,255,255,.045);
    color:#f2f2f2;
  }
  .nav a:first-child{
    background:rgba(212,177,90,.18);
    color:var(--gold2);
    border-color:rgba(212,177,90,.48);
  }
  .hero{
    padding-top:122px;
  }
}

@media(max-width:620px){
  .header-inner{
    min-height:unset;
    padding:8px 0 9px;
  }
  .brand img{
    width:112px;
  }
  .nav{
    gap:7px;
    padding:7px 0 2px;
  }
  .nav a{
    font-size:12.5px;
    padding:8px 10px;
  }
  .hero{
    padding-top:118px;
    min-height:720px;
  }
  .hero-content{
    padding-top:120px;
  }
}


/* Dark green header */
.site-header{
  background:rgba(3,24,13,.92) !important;
  border-bottom:1px solid rgba(212,177,90,.24);
}
@media(max-width:980px){
  .site-header{
    background:rgba(3,24,13,.94) !important;
  }
}


/* Car gallery */
.car-gallery{
  min-height:520px;
}
.gallery-main{
  height:520px;
  border-radius:34px;
  background:linear-gradient(135deg,#111,#07140c);
  border:1px solid var(--line);
  overflow:hidden;
  box-shadow:var(--shadow);
}
.gallery-main img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.gallery-placeholder{
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--muted);
  font-size:22px;
}
.gallery-thumbs{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:10px;
  margin-top:12px;
}
.gallery-thumb{
  height:90px;
  border:1px solid rgba(212,177,90,.22);
  border-radius:14px;
  overflow:hidden;
  padding:0;
  background:#080808;
  cursor:pointer;
  opacity:.72;
  transition:.22s;
}
.gallery-thumb:hover,
.gallery-thumb.active{
  opacity:1;
  border-color:var(--gold);
  transform:translateY(-2px);
}
.gallery-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* Admin gallery */
.ajili-gallery-preview{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:0 0 12px;
  direction:rtl;
}
.ajili-gallery-thumb{
  width:92px;
  height:92px;
  position:relative;
  border:1px solid #dcdcde;
  border-radius:10px;
  overflow:hidden;
  background:#f6f7f7;
}
.ajili-gallery-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.ajili-remove-image{
  position:absolute;
  top:4px;
  left:4px;
  width:24px;
  height:24px;
  line-height:20px;
  border:0;
  border-radius:50%;
  background:#b32d2e;
  color:#fff;
  cursor:pointer;
  font-weight:800;
}

@media(max-width:980px){
  .car-gallery,
  .gallery-main{
    min-height:unset;
  }
  .gallery-main{
    height:420px;
    border-radius:24px;
  }
  .gallery-thumbs{
    grid-template-columns:repeat(4,1fr);
  }
}
@media(max-width:620px){
  .gallery-main{
    height:300px;
    border-radius:18px;
  }
  .gallery-thumbs{
    grid-template-columns:repeat(4,1fr);
    gap:8px;
  }
  .gallery-thumb{
    height:68px;
    border-radius:10px;
  }
}


.pagination{
  display:flex;
  justify-content:center;
  gap:8px;
  margin-top:34px;
  direction:rtl;
}
.pagination .page-numbers{
  min-width:42px;
  height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--line);
  border-radius:999px;
  color:#fff;
  background:rgba(255,255,255,.04);
}
.pagination .current{
  background:linear-gradient(135deg,var(--gold),var(--gold2));
  color:#080808;
  font-weight:900;
}
.empty-cars{
  text-align:right;
}
.empty-cars h2{
  margin-top:0;
  color:var(--gold2);
}


/* Single car mobile image/header spacing fix */
@media(max-width:980px){
  .single-wrap{
    padding-top:150px !important;
  }
  .single-wrap.container{
    width:min(92vw,720px);
  }
  .car-gallery{
    margin-top:0;
  }
  .gallery-main{
    height:auto;
    min-height:unset;
    aspect-ratio:16/10;
  }
  .gallery-main img{
    height:100%;
    object-fit:contain;
    background:#050505;
  }
}

@media(max-width:620px){
  .single-wrap{
    padding-top:138px !important;
    gap:20px;
  }
  .gallery-main{
    height:auto !important;
    aspect-ratio:4/3;
    border-radius:18px;
  }
  .gallery-main img{
    width:100%;
    height:100%;
    object-fit:contain;
    background:#050505;
  }
  .gallery-thumbs{
    margin-top:10px;
  }
}


/* Strong fix: prevent single car gallery from going under fixed mobile header */
@media(max-width:980px){
  .single-car-page{
    padding-top:168px !important;
  }
  .single-car-page .single-wrap{
    padding-top:24px !important;
  }
}

@media(max-width:620px){
  .single-car-page{
    padding-top:156px !important;
  }
  .single-car-page .single-wrap{
    padding-top:18px !important;
  }
  .single-car-page .car-gallery{
    position:relative;
    z-index:1;
  }
  .single-car-page .gallery-main{
    margin-top:0 !important;
  }
}

@media(max-width:390px){
  .single-car-page{
    padding-top:172px !important;
  }
}


/* Mobile header: menu beside logo, not under it */
@media(max-width:980px){
  .site-header{
    overflow:hidden;
  }
  .header-inner{
    flex-wrap:nowrap !important;
    min-height:74px;
    height:74px;
    padding:8px 0;
    gap:10px;
    align-items:center;
  }
  .brand{
    flex:0 0 auto;
    max-width:118px;
  }
  .brand img{
    width:112px;
    max-width:112px;
  }
  .brand-title{
    display:none;
  }
  .nav{
    display:flex !important;
    order:initial !important;
    flex:1 1 auto;
    width:auto !important;
    min-width:0;
    max-width:none;
    margin-top:0 !important;
    padding:5px 0 !important;
    gap:7px;
    overflow-x:auto;
    overflow-y:hidden;
    white-space:nowrap;
    justify-content:flex-start;
    scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
  }
  .nav::-webkit-scrollbar{
    display:none;
  }
  .nav a{
    flex:0 0 auto;
    font-size:12.5px;
    padding:8px 10px;
    line-height:1;
    border:1px solid rgba(212,177,90,.24);
    border-radius:999px;
    background:rgba(255,255,255,.045);
  }
  .header-actions{
    display:none !important;
  }
  .hero{
    padding-top:74px !important;
  }
  .single-car-page{
    padding-top:92px !important;
  }
  .single-car-page .single-wrap{
    padding-top:14px !important;
  }
}

@media(max-width:620px){
  .header-inner{
    height:68px;
    min-height:68px;
    padding:7px 0;
    gap:8px;
  }
  .brand{
    max-width:102px;
  }
  .brand img{
    width:100px;
    max-width:100px;
  }
  .nav{
    gap:6px;
    padding:4px 0 !important;
  }
  .nav a{
    font-size:11.5px;
    padding:7px 9px;
  }
  .hero{
    padding-top:68px !important;
  }
  .single-car-page{
    padding-top:82px !important;
  }
  .single-car-page .single-wrap{
    padding-top:12px !important;
  }
}

@media(max-width:390px){
  .brand{
    max-width:92px;
  }
  .brand img{
    width:90px;
    max-width:90px;
  }
  .nav a{
    font-size:11px;
    padding:7px 8px;
  }
}


/* Home hero mobile height fix after moving menu beside logo */
@media(max-width:980px){
  body.home .hero,
  .home .hero,
  .front-page .hero,
  .hero{
    min-height:620px !important;
    align-items:center !important;
    padding-top:74px !important;
  }
  .hero-content{
    padding:70px 0 38px !important;
  }
}

@media(max-width:620px){
  body.home .hero,
  .home .hero,
  .front-page .hero,
  .hero{
    min-height:540px !important;
    height:auto !important;
    padding-top:68px !important;
    align-items:flex-end !important;
  }
  .hero-content{
    padding:72px 0 32px !important;
  }
  .hero h1{
    font-size:31px !important;
    line-height:1.35 !important;
    margin-bottom:10px !important;
  }
  .hero p{
    font-size:13.5px !important;
    line-height:1.9 !important;
    margin-bottom:16px !important;
  }
  .hero-buttons .btn{
    padding:9px 12px !important;
    font-size:12.5px !important;
  }
}

@media(max-width:390px){
  body.home .hero,
  .home .hero,
  .front-page .hero,
  .hero{
    min-height:510px !important;
  }
  .hero-content{
    padding:62px 0 28px !important;
  }
  .hero h1{
    font-size:28px !important;
  }
}


/* Home hero mobile height - even shorter */
@media(max-width:980px){
  body.home .hero,
  .home .hero,
  .front-page .hero,
  .hero{
    min-height:560px !important;
  }
  .hero-content{
    padding:54px 0 30px !important;
  }
}

@media(max-width:620px){
  body.home .hero,
  .home .hero,
  .front-page .hero,
  .hero{
    min-height:470px !important;
  }
  .hero-content{
    padding:52px 0 24px !important;
  }
  .hero h1{
    font-size:29px !important;
    line-height:1.32 !important;
  }
  .hero p{
    font-size:13px !important;
    line-height:1.75 !important;
    margin-bottom:12px !important;
  }
  .eyebrow{
    margin-bottom:8px !important;
  }
}

@media(max-width:390px){
  body.home .hero,
  .home .hero,
  .front-page .hero,
  .hero{
    min-height:445px !important;
  }
  .hero-content{
    padding:44px 0 22px !important;
  }
  .hero h1{
    font-size:26px !important;
  }
}


/* Final mobile: bigger logo/menu + shorter home hero */
@media(max-width:980px){
  .header-inner{
    height:82px !important;
    min-height:82px !important;
    padding:8px 0 !important;
    gap:12px !important;
  }
  .brand{
    max-width:142px !important;
    flex:0 0 142px !important;
  }
  .brand img{
    width:138px !important;
    max-width:138px !important;
  }
  .nav a{
    font-size:13.8px !important;
    padding:9px 12px !important;
  }
  .hero{
    padding-top:82px !important;
    min-height:500px !important;
  }
  .hero-content{
    padding:38px 0 22px !important;
  }
  .single-car-page{
    padding-top:100px !important;
  }
}

@media(max-width:620px){
  .header-inner{
    height:78px !important;
    min-height:78px !important;
    padding:7px 0 !important;
    gap:10px !important;
  }
  .brand{
    max-width:126px !important;
    flex:0 0 126px !important;
  }
  .brand img{
    width:122px !important;
    max-width:122px !important;
  }
  .nav{
    gap:7px !important;
  }
  .nav a{
    font-size:12.8px !important;
    padding:8px 10px !important;
  }
  body.home .hero,
  .home .hero,
  .front-page .hero,
  .hero{
    min-height:410px !important;
    padding-top:78px !important;
    align-items:flex-end !important;
  }
  .hero-content{
    padding:34px 0 20px !important;
  }
  .hero h1{
    font-size:25px !important;
    line-height:1.32 !important;
    margin-bottom:8px !important;
  }
  .hero p{
    font-size:12.5px !important;
    line-height:1.65 !important;
    margin-bottom:10px !important;
  }
  .eyebrow{
    font-size:11px !important;
    padding:4px 10px !important;
    margin-bottom:7px !important;
  }
  .hero-buttons .btn{
    padding:8px 10px !important;
    font-size:12px !important;
  }
  .single-car-page{
    padding-top:96px !important;
  }
}

@media(max-width:390px){
  .header-inner{
    height:76px !important;
    min-height:76px !important;
    gap:8px !important;
  }
  .brand{
    max-width:112px !important;
    flex:0 0 112px !important;
  }
  .brand img{
    width:108px !important;
    max-width:108px !important;
  }
  .nav a{
    font-size:12px !important;
    padding:7px 9px !important;
  }
  body.home .hero,
  .home .hero,
  .front-page .hero,
  .hero{
    min-height:390px !important;
    padding-top:76px !important;
  }
  .hero-content{
    padding:28px 0 18px !important;
  }
  .hero h1{
    font-size:23px !important;
  }
}


/* Remove yellow decorative line over car preview images */
.car-img:before,
.car-img:after{
  display:none !important;
}
.car-img img{
  position:relative;
  z-index:1;
}
.car-img .badge{
  z-index:2;
}


/* Click-to-enlarge car image lightbox */
.gallery-main-open{
  width:100%;
  height:100%;
  display:block;
  padding:0;
  border:0;
  background:transparent;
  cursor:zoom-in;
}
.gallery-main-open img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.gallery-main-open:focus{
  outline:2px solid var(--gold);
  outline-offset:-4px;
}
.ajili-lightbox{
  position:fixed;
  inset:0;
  z-index:99999;
  display:none;
  align-items:center;
  justify-content:center;
  padding:24px;
  background:rgba(0,0,0,.92);
  backdrop-filter:blur(8px);
}
.ajili-lightbox.active{
  display:flex;
}
.ajili-lightbox img{
  max-width:min(94vw,1400px);
  max-height:88vh;
  width:auto;
  height:auto;
  object-fit:contain;
  border-radius:18px;
  box-shadow:0 30px 100px rgba(0,0,0,.7);
}
.ajili-lightbox-close{
  position:absolute;
  top:22px;
  left:24px;
  width:46px;
  height:46px;
  border:1px solid rgba(212,177,90,.45);
  border-radius:50%;
  background:rgba(3,24,13,.92);
  color:#fff;
  font-size:34px;
  line-height:40px;
  cursor:pointer;
  z-index:2;
}
.ajili-lightbox-nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:52px;
  height:52px;
  border:1px solid rgba(212,177,90,.45);
  border-radius:50%;
  background:rgba(3,24,13,.86);
  color:var(--gold2);
  font-size:44px;
  line-height:40px;
  cursor:pointer;
  z-index:2;
}
.ajili-lightbox-prev{
  right:24px;
}
.ajili-lightbox-next{
  left:24px;
}
body.lightbox-open{
  overflow:hidden;
}

@media(max-width:620px){
  .gallery-main-open img{
    object-fit:contain;
    background:#050505;
  }
  .ajili-lightbox{
    padding:14px;
  }
  .ajili-lightbox img{
    max-width:96vw;
    max-height:82vh;
    border-radius:12px;
  }
  .ajili-lightbox-close{
    top:12px;
    left:12px;
    width:42px;
    height:42px;
    font-size:30px;
  }
  .ajili-lightbox-nav{
    width:42px;
    height:42px;
    font-size:36px;
  }
  .ajili-lightbox-prev{
    right:12px;
  }
  .ajili-lightbox-next{
    left:12px;
  }
}


.phone-list{
  display:flex;
  flex-direction:column;
  gap:4px;
  direction:rtl;
}
.phone-list span{
  display:block;
  color:#fff;
  direction:rtl;
}


.phone-list{
  display:flex;
  flex-direction:column;
  gap:4px;
  direction:rtl;
}
.phone-list span{
  display:block;
  color:#fff;
  direction:ltr;
  unicode-bidi:plaintext;
}
.phone-list span::before,
.phone-list span::after{
  content:none !important;
}


/* Final footer phone layout */
.phone-list{
  display:grid !important;
  grid-template-columns:auto 1fr !important;
  gap:4px 10px !important;
  direction:rtl !important;
  text-align:right !important;
  justify-items:start !important;
  align-items:start !important;
}
.phone-list strong{
  grid-row:1 / span 2;
  color:var(--muted);
  font-weight:700;
}
.phone-list span{
  display:block !important;
  color:#fff !important;
  direction:ltr !important;
  unicode-bidi:plaintext !important;
  text-align:right !important;
}
.phone-list span::before,
.phone-list span::after{
  content:none !important;
}


/* Disabled price field UX */
.ajili-admin-field input:disabled{
  background:#f0f0f1;
  color:#8c8f94;
  cursor:not-allowed;
}


/* Single car price and mileage split display */
.single-key-info{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  margin:18px 0 18px;
}
.key-info-item{
  background:linear-gradient(180deg,#101510,#070807);
  border:1px solid var(--line);
  border-radius:18px;
  padding:14px 16px;
}
.key-info-item small{
  display:block;
  color:var(--muted);
  font-size:13px;
  margin-bottom:4px;
}
.key-info-item strong{
  display:block;
  color:var(--gold2);
  font-size:19px;
  font-weight:900;
  direction:rtl;
  unicode-bidi:plaintext;
}
@media(max-width:620px){
  .single-key-info{
    grid-template-columns:1fr;
    gap:10px;
    margin:14px 0 16px;
  }
}


/* Location section */
.location-section{
  padding-top:0;
}
.location-card{
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:24px;
  align-items:stretch;
  background:linear-gradient(135deg,rgba(13,59,30,.72),rgba(5,5,5,.96));
  border:1px solid var(--line);
  border-radius:34px;
  padding:28px;
  box-shadow:var(--shadow);
  overflow:hidden;
  position:relative;
}
.location-card:before{
  content:"";
  position:absolute;
  inset:auto -120px -160px auto;
  width:360px;
  height:360px;
  border-radius:50%;
  background:rgba(212,177,90,.10);
}
.location-content{
  position:relative;
  z-index:1;
  padding:18px 10px;
}
.location-address{
  margin:18px 0 24px;
  color:#fff;
  background:rgba(255,255,255,.055);
  border:1px solid rgba(212,177,90,.18);
  border-radius:18px;
  padding:13px 16px;
}
.location-map-preview{
  position:relative;
  z-index:1;
  min-height:280px;
  border-radius:26px;
  border:1px solid rgba(212,177,90,.30);
  background:
    linear-gradient(135deg,rgba(0,0,0,.28),rgba(0,0,0,.58)),
    radial-gradient(circle at 28% 30%,rgba(212,177,90,.28),transparent 22%),
    linear-gradient(135deg,#102016,#050505);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  overflow:hidden;
  transition:.25s;
}
.location-map-preview:hover{
  transform:translateY(-3px);
  border-color:rgba(212,177,90,.68);
}
.location-map-preview:before,
.location-map-preview:after{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg,transparent 0 48%,rgba(212,177,90,.16) 49% 51%,transparent 52%),
    linear-gradient(0deg,transparent 0 48%,rgba(212,177,90,.13) 49% 51%,transparent 52%);
  opacity:.65;
}
.map-pin{
  position:relative;
  z-index:1;
  font-size:48px;
  margin-bottom:8px;
}
.location-map-preview strong,
.location-map-preview small{
  position:relative;
  z-index:1;
}
.location-map-preview strong{
  color:var(--gold2);
  font-size:26px;
}
.location-map-preview small{
  color:#ddd;
  margin-top:4px;
}
@media(max-width:980px){
  .location-card{
    grid-template-columns:1fr;
    border-radius:24px;
  }
  .location-map-preview{
    min-height:220px;
  }
}
@media(max-width:620px){
  .location-card{
    padding:20px;
  }
  .location-content{
    padding:4px 0;
  }
  .location-map-preview{
    min-height:180px;
    border-radius:18px;
  }
}


/* Real Google Map inside location section */
.location-map-preview.real-map{
  padding:0;
  background:#0b0b0b;
}
.location-map-preview.real-map:before,
.location-map-preview.real-map:after{
  display:none !important;
}
.location-map-preview.real-map iframe{
  display:block;
  width:100%;
  height:100%;
  min-height:280px;
  border-radius:26px;
  filter:saturate(.85) contrast(1.05);
}
.map-open-link{
  position:absolute;
  right:16px;
  bottom:16px;
  z-index:3;
  background:linear-gradient(135deg,var(--gold),var(--gold2));
  color:#080808;
  border-radius:999px;
  padding:8px 14px;
  font-size:13px;
  font-weight:800;
  box-shadow:0 8px 22px rgba(0,0,0,.35);
}
@media(max-width:980px){
  .location-map-preview.real-map iframe{
    min-height:240px;
    border-radius:22px;
  }
}
@media(max-width:620px){
  .location-map-preview.real-map iframe{
    min-height:210px;
    border-radius:18px;
  }
  .map-open-link{
    right:10px;
    bottom:10px;
    font-size:12px;
    padding:7px 12px;
  }
}


/* Location buttons */
.location-buttons{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  align-items:center;
}
.btn-waze{
  background:rgba(255,255,255,.04);
}
.btn-waze:hover{
  background:rgba(212,177,90,.12);
}
@media(max-width:620px){
  .location-buttons .btn{
    width:100%;
  }
}


/* Gold buttons for contact and Waze */
.btn-waze.btn-gold{
  background:linear-gradient(135deg,var(--gold),var(--gold2)) !important;
  color:#0b0b0b !important;
  border-color:var(--gold) !important;
  box-shadow:0 10px 25px rgba(212,177,90,.22);
}
.btn-waze.btn-gold:hover{
  background:linear-gradient(135deg,var(--gold),var(--gold2)) !important;
  transform:translateY(-2px);
}


/* Designer credit */
.designer-credit{
  color:var(--muted);
  font-size:14px;
}
.designer-credit a{
  color:var(--gold2);
  font-weight:800;
  border-bottom:1px solid rgba(212,177,90,.45);
  padding-bottom:2px;
}
.designer-credit a:hover{
  color:#fff;
  border-bottom-color:#fff;
}
@media(max-width:620px){
  .designer-credit{
    font-size:13px;
  }
}


/* About page */
.about-hero{
  padding:90px 0 60px;
  background:
    linear-gradient(90deg,rgba(0,0,0,.86),rgba(3,24,13,.76)),
    radial-gradient(circle at 20% 20%,rgba(212,177,90,.18),transparent 28%),
    linear-gradient(135deg,#03180d,#050505);
  border-bottom:1px solid var(--line);
}
.about-page-grid{
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:34px;
  align-items:center;
}
.about-page-content{
  background:linear-gradient(180deg,#101510,#070807);
  border:1px solid var(--line);
  border-radius:34px;
  padding:38px;
  box-shadow:var(--shadow);
}
.about-page-content h2{
  margin-top:0;
  color:var(--gold2);
  font-size:32px;
}
.about-page-content p{
  color:#d9d9d9;
  margin:0 0 18px;
}
.about-page-logo{
  min-height:420px;
  border-radius:34px;
  border:1px solid var(--line);
  background:radial-gradient(circle at 30% 25%,rgba(212,177,90,.22),transparent 30%),linear-gradient(145deg,#040404,#102016);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:38px;
  overflow:hidden;
}
.about-page-logo img{
  width:min(360px,80%);
  height:auto;
}
.about-values{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
}
.value-card{
  background:linear-gradient(180deg,#101510,#070807);
  border:1px solid var(--line);
  border-radius:24px;
  padding:26px;
  box-shadow:var(--shadow);
}
.value-card span{
  color:var(--gold);
  font-weight:900;
  font-size:28px;
}
.value-card h3{
  margin:8px 0 10px;
  color:var(--gold2);
}
.value-card p{
  color:var(--muted);
  margin:0;
}
.about-contact-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:28px;
  background:linear-gradient(135deg,rgba(13,59,30,.72),rgba(5,5,5,.96));
  border:1px solid var(--line);
  border-radius:34px;
  padding:34px;
  box-shadow:var(--shadow);
}
.about-contact-card h2{
  margin:0 0 8px;
  color:var(--gold2);
}
.about-contact-card p{
  margin:0 0 12px;
  color:#d9d9d9;
}
.about-address{
  color:#fff;
}
@media(max-width:980px){
  .about-page-grid,
  .about-values{
    grid-template-columns:1fr;
  }
  .about-contact-card{
    flex-direction:column;
    align-items:flex-start;
  }
}
@media(max-width:620px){
  .about-hero{
    padding:74px 0 44px;
  }
  .about-page-content,
  .about-contact-card{
    border-radius:22px;
    padding:24px;
  }
  .about-page-logo{
    min-height:260px;
    border-radius:22px;
  }
}


/* Single car: description directly under gallery */
.single-media-col{
  display:flex;
  flex-direction:column;
  gap:24px;
  min-width:0;
}
.car-description-panel{
  margin-top:0;
}
.car-description-panel h2{
  margin-top:0;
}
@media(min-width:981px){
  .single-media-col .car-gallery{
    margin-bottom:0;
  }
}


/* Better mixed Persian/English display */
.section-title,
.car-card h3,
.details-box h1,
.about-panel,
.car-description-panel,
.spec b,
.spec small,
.key-info-item strong,
.key-info-item small,
p,
h1,h2,h3,h4,h5,h6{
  unicode-bidi: isolate;
}
.car-description-panel,
.about-panel,
.details-box,
.specs,
.car-card{
  direction: rtl;
  text-align: right;
}


/* Mobile single-car main image: keep the same frame, only remove black side bars inside it */
@media(max-width:980px){
  .single-car-page .gallery-main img,
  .single-car-page .gallery-main-open img,
  .single-car-page #ajili-main-gallery-image{
    width:100% !important;
    height:100% !important;
    object-fit:cover !important;
    background:transparent !important;
  }
}


/* About page mobile text formatting fix */
.about-page-content,
.about-page-content p,
.about-page-content h2,
.about-contact-card,
.about-contact-card p,
.about-contact-card h2,
.about-values,
.value-card,
.value-card p,
.value-card h3,
.about-address{
  direction: rtl;
  text-align: right;
  unicode-bidi: isolate;
}

@media(max-width:620px){
  .about-hero{
    text-align:right !important;
  }

  .about-hero .section-title,
  .about-hero .section-sub,
  .about-hero .eyebrow{
    text-align:right !important;
    direction:rtl !important;
  }

  .about-page-content{
    padding:22px !important;
    line-height:2 !important;
  }

  .about-page-content h2{
    font-size:24px !important;
    line-height:1.55 !important;
    margin-bottom:14px !important;
  }

  .about-page-content p{
    font-size:15px !important;
    line-height:2.05 !important;
    margin-bottom:14px !important;
    text-align:justify !important;
    text-align-last:right !important;
  }

  .about-values{
    gap:14px !important;
  }

  .value-card{
    padding:20px !important;
    text-align:right !important;
  }

  .value-card span{
    display:block !important;
    text-align:right !important;
    font-size:24px !important;
  }

  .value-card h3{
    font-size:19px !important;
    line-height:1.6 !important;
    text-align:right !important;
  }

  .value-card p,
  .about-contact-card p,
  .about-address{
    font-size:14.5px !important;
    line-height:2 !important;
    text-align:right !important;
  }

  .about-contact-card{
    align-items:stretch !important;
    text-align:right !important;
  }

  .about-contact-card .hero-buttons{
    width:100% !important;
    display:flex !important;
    flex-direction:column !important;
    gap:10px !important;
  }

  .about-contact-card .btn{
    width:100% !important;
    justify-content:center !important;
    text-align:center !important;
  }
}


/* About page mobile refinement v2 */
.about-page-content h2,
.about-page-content h2 *{
  direction: rtl !important;
  unicode-bidi: plaintext !important;
  text-align: right !important;
  word-spacing: normal !important;
  letter-spacing: normal !important;
}

@media(max-width:620px){
  .about-page-content h2{
    font-size:22px !important;
    line-height:1.8 !important;
    display:block !important;
    max-width:100% !important;
  }

  .about-contact-card .hero-buttons{
    width:auto !important;
    display:flex !important;
    flex-direction:row !important;
    flex-wrap:wrap !important;
    gap:10px !important;
    align-items:center !important;
  }

  .about-contact-card .btn{
    width:auto !important;
    min-width:0 !important;
    max-width:100% !important;
    padding:10px 14px !important;
    font-size:13px !important;
    line-height:1.4 !important;
    border-radius:999px !important;
    display:inline-flex !important;
    justify-content:center !important;
    text-align:center !important;
    white-space:nowrap !important;
  }
}

@media(max-width:390px){
  .about-contact-card .hero-buttons{
    flex-direction:column !important;
    align-items:stretch !important;
  }
  .about-contact-card .btn{
    width:100% !important;
  }
}


/* About page: return mobile buttons to compact original size */
@media(max-width:620px){
  .about-contact-card .hero-buttons{
    width:auto !important;
    max-width:100% !important;
    display:flex !important;
    flex-direction:row !important;
    flex-wrap:wrap !important;
    gap:8px !important;
    align-items:center !important;
    justify-content:flex-start !important;
  }

  .about-contact-card .hero-buttons .btn,
  .about-contact-card a.btn{
    width:auto !important;
    min-width:auto !important;
    max-width:max-content !important;
    flex:0 0 auto !important;
    padding:8px 12px !important;
    min-height:0 !important;
    height:auto !important;
    font-size:12.5px !important;
    line-height:1.35 !important;
    border-radius:999px !important;
    white-space:nowrap !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
  }
}

@media(max-width:390px){
  .about-contact-card .hero-buttons{
    flex-direction:row !important;
    align-items:center !important;
  }
  .about-contact-card .hero-buttons .btn,
  .about-contact-card a.btn{
    width:auto !important;
    max-width:max-content !important;
    flex:0 0 auto !important;
  }
}


/* Homepage mobile hero text RTL fix */
@media(max-width:620px){
  .hero-content,
  .hero-content p,
  .hero-content h1{
    direction:rtl !important;
    text-align:right !important;
    unicode-bidi:plaintext !important;
  }

  .hero-content p{
    line-height:2 !important;
    font-size:15px !important;
    text-align:right !important;
  }

  .hero-content h1{
    line-height:1.55 !important;
  }

  .hero-content .eyebrow{
    direction:ltr !important;
    text-align:right !important;
    unicode-bidi:isolate !important;
  }

  .hero-content .stats,
  .hero-content .stat{
    direction:rtl !important;
    text-align:right !important;
  }
}


/* Homepage hero brand order fix in RTL text */
.hero-content p{
  direction:rtl !important;
  text-align:right !important;
  unicode-bidi:isolate !important;
}
.hero-content p .brand-ltr{
  direction:ltr !important;
  unicode-bidi:isolate !important;
  display:inline-block !important;
  white-space:nowrap !important;
}
@media(max-width:620px){
  .hero-content p{
    direction:rtl !important;
    text-align:right !important;
    unicode-bidi:isolate !important;
  }
}


/* About page Ajili Car order fix in RTL text */
.about-page-content,
.about-page-content p,
.about-page-content h2,
.about-contact-card,
.about-contact-card p{
  direction:rtl !important;
  unicode-bidi:isolate !important;
}
.about-page-content .brand-ltr,
.about-contact-card .brand-ltr,
.about-hero .brand-ltr{
  direction:ltr !important;
  unicode-bidi:isolate !important;
  display:inline-block !important;
  white-space:nowrap !important;
}


/* PWA install button */
.ajili-install-app{
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:9999;
  border:1px solid rgba(212,177,90,.55);
  background:#d4b15a;
  color:#101010;
  border-radius:999px;
  padding:10px 16px;
  font-weight:800;
  font-family:inherit;
  box-shadow:0 16px 42px rgba(0,0,0,.35);
  cursor:pointer;
}
@media(max-width:620px){
  .ajili-install-app{
    right:12px;
    bottom:12px;
    font-size:12.5px;
    padding:9px 13px;
  }
}






/* 404 page */
.ajili-404-page{
  min-height:60vh;
  background:
    radial-gradient(circle at 75% 10%, rgba(212,177,90,.13), transparent 30%),
    radial-gradient(circle at 15% 35%, rgba(23,79,42,.30), transparent 35%),
    var(--bg);
}
.ajili-404-section{
  padding:90px 0;
}
.ajili-404-card{
  max-width:760px;
  margin-inline:auto;
  text-align:center;
  border:1px solid var(--line);
  border-radius:34px;
  background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.025));
  box-shadow:var(--shadow);
  padding:52px 36px;
  position:relative;
  overflow:hidden;
}
.ajili-404-card:before{
  content:"";
  position:absolute;
  inset:-90px auto auto -90px;
  width:220px;
  height:220px;
  border-radius:50%;
  background:rgba(212,177,90,.09);
  border:1px solid rgba(212,177,90,.18);
}
.ajili-404-code{
  direction:ltr;
  unicode-bidi:isolate;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:150px;
  height:82px;
  margin-bottom:18px;
  border-radius:999px;
  background:linear-gradient(135deg,var(--gold),var(--gold2));
  color:#101010;
  font-size:42px;
  line-height:1;
  font-weight:900;
  letter-spacing:1px;
}
.ajili-404-card h1{
  margin:0 0 14px;
  font-size:clamp(28px,4vw,44px);
  color:#fff;
}
.ajili-404-card p{
  max-width:560px;
  margin:0 auto 28px;
  color:var(--muted);
  font-size:16px;
}
.ajili-404-actions{
  display:flex;
  justify-content:center;
  align-items:center;
  flex-wrap:wrap;
  gap:12px;
}
@media(max-width:620px){
  .ajili-404-section{
    padding:48px 0;
  }
  .ajili-404-card{
    border-radius:24px;
    padding:34px 18px;
  }
  .ajili-404-code{
    min-width:120px;
    height:66px;
    font-size:34px;
  }
  .ajili-404-card p{
    font-size:14px;
  }
  .ajili-404-actions{
    gap:8px;
  }
  .ajili-404-actions .btn{
    width:auto;
    max-width:max-content;
    flex:0 0 auto;
    padding:8px 12px;
    font-size:12.5px;
  }
}


/* 404 page final adjustments */
.ajili-404-code{
  display:none !important;
}
.ajili-404-section{
  padding-top:130px;
  padding-bottom:150px;
}
.ajili-404-card{
  margin-top:0;
}
@media(max-width:620px){
  .ajili-404-page{
    padding-top:0;
  }
  .ajili-404-section{
    padding-top:110px !important;
    padding-bottom:120px !important;
  }
  .ajili-404-card{
    margin-top:0;
  }
}


/* 404 desktop layout like mobile */
@media(min-width:621px){
  .ajili-404-section{
    padding-top:110px !important;
    padding-bottom:140px !important;
  }
  .ajili-404-card{
    max-width:640px;
    border-radius:24px;
    padding:38px 28px;
    margin-inline:auto;
  }
  .ajili-404-card h1{
    font-size:36px;
    margin-bottom:12px;
  }
  .ajili-404-card p{
    font-size:15px;
    max-width:500px;
    margin-bottom:24px;
  }
  .ajili-404-actions{
    gap:8px;
  }
  .ajili-404-actions .btn{
    width:auto;
    max-width:max-content;
    flex:0 0 auto;
    padding:9px 14px;
    font-size:13px;
  }
}


/* Force car descriptions to remain RTL even when the first word is English */
.car-description-panel,
.car-description-panel .ajili-car-description-text,
.car-description-panel .ajili-car-description-text > *,
.car-description-panel .ajili-car-options,
.single-car-page .entry-content,
.single-car-page .entry-content > *{
  direction:rtl !important;
  text-align:right !important;
  unicode-bidi:isolate !important;
}
.ajili-car-description-text{
  width:100%;
  overflow-wrap:anywhere;
  word-break:normal;
}
.ajili-car-description-text p,
.ajili-car-description-text div,
.ajili-car-description-text li,
.ajili-car-description-text h1,
.ajili-car-description-text h2,
.ajili-car-description-text h3,
.ajili-car-description-text h4,
.ajili-car-description-text h5,
.ajili-car-description-text h6{
  direction:rtl !important;
  text-align:right !important;
  unicode-bidi:isolate !important;
}
.ajili-rtl-anchor{
  display:inline;
  width:0;
  height:0;
  overflow:hidden;
}


/* Car description RTL v2 */
.car-description-panel,
.car-description-panel .ajili-car-description-text,
.car-description-panel .ajili-car-description-rtl-v2,
.car-description-panel .ajili-car-description-rtl-v2 > *,
.car-description-panel .ajili-car-description-rtl-v2 p,
.car-description-panel .ajili-car-description-rtl-v2 div,
.car-description-panel .ajili-car-description-rtl-v2 li,
.car-description-panel .ajili-car-description-rtl-v2 blockquote,
.car-description-panel .ajili-car-description-rtl-v2 h1,
.car-description-panel .ajili-car-description-rtl-v2 h2,
.car-description-panel .ajili-car-description-rtl-v2 h3,
.car-description-panel .ajili-car-description-rtl-v2 h4,
.car-description-panel .ajili-car-description-rtl-v2 h5,
.car-description-panel .ajili-car-description-rtl-v2 h6{
  direction:rtl !important;
  text-align:right !important;
  unicode-bidi:isolate !important;
}
.ajili-inline-rtl-mark{
  display:inline !important;
  font-size:0 !important;
  line-height:0 !important;
  width:0 !important;
  height:0 !important;
  overflow:hidden !important;
}


/* Homepage YouTube section */
.ajili-youtube-section{
  padding-top:20px;
}
.ajili-youtube-card{
  position:relative;
  overflow:hidden;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(300px,420px);
  gap:44px;
  align-items:center;
  padding:44px;
  border:1px solid rgba(212,177,90,.28);
  border-radius:32px;
  background:
    radial-gradient(circle at 8% 16%,rgba(198,28,28,.20),transparent 34%),
    radial-gradient(circle at 88% 90%,rgba(212,177,90,.16),transparent 34%),
    linear-gradient(145deg,#111512,#070807 70%);
  box-shadow:var(--shadow);
}
.ajili-youtube-card::before{
  content:"";
  position:absolute;
  width:280px;
  height:280px;
  border:1px solid rgba(255,255,255,.05);
  border-radius:50%;
  left:-110px;
  bottom:-150px;
}
.ajili-youtube-content,
.ajili-youtube-video-wrap{
  position:relative;
  z-index:1;
}
.ajili-youtube-badge{
  display:inline-flex;
  align-items:center;
  gap:10px;
  margin-bottom:18px;
  padding:8px 14px;
  border:1px solid rgba(255,76,76,.28);
  border-radius:999px;
  background:rgba(198,28,28,.11);
  color:#ffd9d9;
  font-size:13px;
  font-weight:800;
  direction:ltr;
}
.ajili-youtube-badge svg{
  width:24px;
  height:24px;
  fill:#ff2f2f;
  flex:0 0 auto;
}
.ajili-youtube-content .section-title{
  max-width:650px;
}
.ajili-youtube-content .section-sub{
  margin-top:14px;
  font-size:17px;
  line-height:2;
}
.ajili-youtube-actions{
  display:flex;
  align-items:center;
  gap:16px;
  flex-wrap:wrap;
  margin-top:26px;
}
.ajili-youtube-subscribe{
  border-color:#e52d27;
  background:linear-gradient(135deg,#ff3b30,#c91414);
  color:#fff;
  box-shadow:0 12px 30px rgba(209,23,23,.25);
}
.ajili-youtube-subscribe:hover{
  transform:translateY(-2px);
  box-shadow:0 16px 36px rgba(209,23,23,.32);
}
.ajili-youtube-watch-link{
  color:var(--gold2);
  border-bottom:1px solid rgba(212,177,90,.55);
  padding-bottom:2px;
  font-weight:700;
}
.ajili-youtube-video-wrap{
  display:flex;
  justify-content:center;
}
.ajili-youtube-video{
  width:min(100%,350px);
  aspect-ratio:9/16;
  overflow:hidden;
  border-radius:26px;
  border:1px solid rgba(255,255,255,.12);
  background:#000;
  box-shadow:0 28px 70px rgba(0,0,0,.6);
}
.ajili-youtube-video iframe{
  display:block;
  width:100%;
  height:100%;
  border:0;
}
@media(max-width:900px){
  .ajili-youtube-card{
    grid-template-columns:1fr;
    gap:30px;
    padding:34px;
  }
  .ajili-youtube-content{
    text-align:center;
  }
  .ajili-youtube-content .section-sub{
    margin-inline:auto;
  }
  .ajili-youtube-actions{
    justify-content:center;
  }
}
@media(max-width:560px){
  .ajili-youtube-section{
    padding-top:0;
  }
  .ajili-youtube-card{
    padding:24px 18px;
    border-radius:24px;
  }
  .ajili-youtube-content .section-title{
    font-size:29px;
  }
  .ajili-youtube-content .section-sub{
    font-size:15px;
  }
  .ajili-youtube-video{
    width:min(100%,310px);
    border-radius:20px;
  }
  .ajili-youtube-actions{
    flex-direction:column;
    align-items:stretch;
  }
  .ajili-youtube-actions .btn{
    width:100%;
  }
  .ajili-youtube-watch-link{
    text-align:center;
    border-bottom:0;
  }
}


/* AjiliCar native SEO visible content */
.cars-seo-intro{
  margin:0 0 26px;
  padding:22px 24px;
}
.cars-seo-intro h2{
  margin:0 0 10px;
  color:#f0d482;
  font-size:22px;
}
.cars-seo-intro p{
  margin:7px 0;
  color:#d9e3dc;
  line-height:2;
}


/* =========================================================
   Frontend toolbar separation by role
   - Administrator: keep native WordPress toolbar layout
   - Showroom manager: use the custom AjiliCar toolbar
   ========================================================= */

/* Shared positioning only; do not restyle the Administrator toolbar. */
body.admin-bar{
  --ajili-frontend-adminbar-height:32px;
  scroll-padding-top:calc(var(--ajili-frontend-adminbar-height) + 102px);
}

body.admin-bar #wpadminbar{
  position:fixed!important;
  top:0!important;
  right:0!important;
  left:0!important;
  width:100%!important;
  z-index:1000000!important;
}

body.admin-bar .site-header{
  top:var(--ajili-frontend-adminbar-height)!important;
  z-index:99999!important;
}

/*
 * Administrator on mobile:
 * preserve WordPress's own toolbar structure and spacing.
 */
@media(max-width:782px){
  body.admin-bar{
    --ajili-frontend-adminbar-height:46px;
    scroll-padding-top:calc(var(--ajili-frontend-adminbar-height) + 84px);
  }

  body.admin-bar:not(.ajili-showroom-manager-frontend) #wpadminbar{
    height:46px!important;
    min-height:46px!important;
    overflow:visible!important;
  }

  body.admin-bar:not(.ajili-showroom-manager-frontend) #wpadminbar .quicklinks,
  body.admin-bar:not(.ajili-showroom-manager-frontend) #wpadminbar .quicklinks > ul{
    height:46px!important;
    min-height:46px!important;
  }

  body.admin-bar:not(.ajili-showroom-manager-frontend) #wpadminbar .ab-item,
  body.admin-bar:not(.ajili-showroom-manager-frontend) #wpadminbar a.ab-item{
    height:46px!important;
    min-height:46px!important;
    line-height:46px!important;
  }
}

/* Custom toolbar only for the showroom-manager role. */
body.admin-bar.ajili-showroom-manager-frontend{
  --ajili-frontend-adminbar-height:60px;
}

body.admin-bar.ajili-showroom-manager-frontend #wpadminbar{
  height:var(--ajili-frontend-adminbar-height)!important;
  min-height:var(--ajili-frontend-adminbar-height)!important;
  overflow:hidden!important;
  border-bottom:1px solid rgba(212,177,90,.46)!important;
  background:
    radial-gradient(circle at 12% -40%,rgba(212,177,90,.18),transparent 34%),
    linear-gradient(90deg,#020804,#07170e 48%,#0b3d20)!important;
  box-shadow:0 8px 24px rgba(0,0,0,.38)!important;
}

body.admin-bar.ajili-showroom-manager-frontend #wpadminbar .quicklinks{
  display:flex!important;
  align-items:center!important;
  width:100%!important;
  height:100%!important;
  min-height:100%!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  scrollbar-width:none!important;
  -webkit-overflow-scrolling:touch;
}

body.admin-bar.ajili-showroom-manager-frontend #wpadminbar .quicklinks::-webkit-scrollbar{
  display:none!important;
}

body.admin-bar.ajili-showroom-manager-frontend #wpadminbar .quicklinks > ul,
body.admin-bar.ajili-showroom-manager-frontend #wpadminbar .quicklinks > ul.ab-top-menu{
  float:none!important;
  display:flex!important;
  align-items:center!important;
  flex-wrap:nowrap!important;
  width:max-content!important;
  min-width:max-content!important;
  height:100%!important;
  margin:0!important;
  padding:0 10px!important;
  box-sizing:border-box!important;
}

body.admin-bar.ajili-showroom-manager-frontend #wpadminbar .quicklinks > ul > li{
  float:none!important;
  display:flex!important;
  flex:0 0 auto!important;
  visibility:visible!important;
  opacity:1!important;
  height:100%!important;
  margin:0!important;
}

body.admin-bar.ajili-showroom-manager-frontend #wpadminbar .ab-item,
body.admin-bar.ajili-showroom-manager-frontend #wpadminbar a.ab-item{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  visibility:visible!important;
  opacity:1!important;
  height:100%!important;
  min-height:100%!important;
  padding:0 12px!important;
  color:#eef5f0!important;
  font-family:"IRANSansWeb","IRANSans","IRANSansX","Iran Sans","IranSans","Vazirmatn",Tahoma,Arial,sans-serif!important;
  font-size:12px!important;
  font-weight:800!important;
  line-height:1!important;
  white-space:nowrap!important;
  box-sizing:border-box!important;
}

body.admin-bar.ajili-showroom-manager-frontend #wpadminbar .ajili-top-label{
  display:inline-block!important;
  visibility:visible!important;
  opacity:1!important;
}

body.admin-bar.ajili-showroom-manager-frontend #wpadminbar .dashicons,
body.admin-bar.ajili-showroom-manager-frontend #wpadminbar .ab-icon{
  display:inline-block!important;
  width:19px!important;
  height:19px!important;
  margin:0!important;
  padding:0!important;
  color:#f0d482!important;
  -webkit-text-fill-color:#f0d482!important;
  font-family:dashicons!important;
  font-size:19px!important;
  font-weight:400!important;
  line-height:19px!important;
}

body.admin-bar.ajili-showroom-manager-frontend #wpadminbar .ajili-showroom-brand-node > .ab-item{
  justify-content:flex-start!important;
  min-width:190px!important;
  padding:0 12px!important;
  border-left:1px solid rgba(212,177,90,.22)!important;
  background:rgba(255,255,255,.025)!important;
}

body.admin-bar.ajili-showroom-manager-frontend #wpadminbar .ajili-top-logo{
  display:grid!important;
  place-items:center!important;
  flex:0 0 36px!important;
  width:36px!important;
  min-width:36px!important;
  max-width:36px!important;
  height:36px!important;
  min-height:36px!important;
  max-height:36px!important;
  overflow:hidden!important;
  border:1px solid rgba(212,177,90,.40)!important;
  border-radius:9px!important;
  background:rgba(255,255,255,.04)!important;
  box-sizing:border-box!important;
}

body.admin-bar.ajili-showroom-manager-frontend #wpadminbar .ajili-top-logo img{
  display:block!important;
  width:29px!important;
  max-width:29px!important;
  height:29px!important;
  max-height:29px!important;
  margin:0!important;
  padding:0!important;
  object-fit:contain!important;
  border:0!important;
  box-shadow:none!important;
}

body.admin-bar.ajili-showroom-manager-frontend #wpadminbar .ajili-top-brand-copy,
body.admin-bar.ajili-showroom-manager-frontend #wpadminbar .ajili-top-user-copy{
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  justify-content:center!important;
  gap:2px!important;
  direction:rtl!important;
  text-align:right!important;
}

body.admin-bar.ajili-showroom-manager-frontend #wpadminbar .ajili-top-brand-copy strong{
  color:#f0d482!important;
  font-family:Arial,sans-serif!important;
  font-size:13px!important;
  font-weight:800!important;
  line-height:1!important;
}

body.admin-bar.ajili-showroom-manager-frontend #wpadminbar .ajili-top-brand-copy small,
body.admin-bar.ajili-showroom-manager-frontend #wpadminbar .ajili-top-user-copy small{
  color:#b8c7bd!important;
  font-size:9px!important;
  line-height:1.1!important;
}

body.admin-bar.ajili-showroom-manager-frontend #wpadminbar .ajili-top-user-copy strong{
  max-width:100px!important;
  overflow:hidden!important;
  color:#fff!important;
  font-size:10px!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}

body.admin-bar.ajili-showroom-manager-frontend #wpadminbar .ajili-top-nav-node:hover > .ab-item,
body.admin-bar.ajili-showroom-manager-frontend #wpadminbar .ajili-top-nav-node.is-active > .ab-item{
  color:#17150d!important;
  background:linear-gradient(135deg,#d4b15a,#f0d482)!important;
}

body.admin-bar.ajili-showroom-manager-frontend #wpadminbar .ajili-top-nav-node:hover .dashicons,
body.admin-bar.ajili-showroom-manager-frontend #wpadminbar .ajili-top-nav-node.is-active .dashicons{
  color:#17150d!important;
  -webkit-text-fill-color:#17150d!important;
}

body.admin-bar.ajili-showroom-manager-frontend #wpadminbar .ajili-top-logout-node > .ab-item{
  color:#ffd2d2!important;
  background:rgba(110,15,15,.22)!important;
}

body.admin-bar.ajili-showroom-manager-frontend #wpadminbar .ajili-top-logout-node:hover > .ab-item{
  color:#fff!important;
  background:#7f1d1d!important;
}

/* Compact but complete toolbar on phones. */
@media(max-width:782px){
  body.admin-bar.ajili-showroom-manager-frontend{
    --ajili-frontend-adminbar-height:50px;
  }

  body.admin-bar.ajili-showroom-manager-frontend #wpadminbar .quicklinks > ul,
  body.admin-bar.ajili-showroom-manager-frontend #wpadminbar .quicklinks > ul.ab-top-menu{
    padding:0 4px!important;
  }

  body.admin-bar.ajili-showroom-manager-frontend #wpadminbar .ab-item,
  body.admin-bar.ajili-showroom-manager-frontend #wpadminbar a.ab-item{
    min-width:43px!important;
    padding:0 9px!important;
  }

  body.admin-bar.ajili-showroom-manager-frontend #wpadminbar .ajili-top-label,
  body.admin-bar.ajili-showroom-manager-frontend #wpadminbar .ajili-top-user-copy,
  body.admin-bar.ajili-showroom-manager-frontend #wpadminbar .ajili-top-brand-copy{
    display:none!important;
  }

  body.admin-bar.ajili-showroom-manager-frontend #wpadminbar .ajili-showroom-brand-node > .ab-item{
    min-width:46px!important;
    padding:0 7px!important;
  }

  body.admin-bar.ajili-showroom-manager-frontend #wpadminbar .ajili-top-logo{
    flex-basis:30px!important;
    width:30px!important;
    min-width:30px!important;
    max-width:30px!important;
    height:30px!important;
    min-height:30px!important;
    max-height:30px!important;
  }

  body.admin-bar.ajili-showroom-manager-frontend #wpadminbar .ajili-top-logo img{
    width:24px!important;
    max-width:24px!important;
    height:24px!important;
    max-height:24px!important;
  }
}
