.anvc-carousel{
    --anvc-gap:20px;
    --anvc-card-radius:12px;
    position:relative;
    width:100%;
    max-width:100%;
    box-sizing:border-box;
    direction:ltr;
    font-family:"Tajawal",Arial,sans-serif;
}
.anvc-carousel *{box-sizing:border-box}
.anvc-viewport{
    width:100%;
    overflow:hidden;
    position:relative;
}
.anvc-track{
    display:flex;
    align-items:stretch;
    gap:var(--anvc-gap);
    will-change:transform;
    transition:transform .45s ease;
}
.anvc-slide{
    flex:0 0 calc((100% - (var(--anvc-gap) * 3))/4);
    min-width:0;
    direction:rtl;
}
.anvc-card{
    height:100%;
    overflow:hidden;
    border-radius:var(--anvc-card-radius);
    background:#fff;
    box-shadow:0 7px 24px rgba(0,0,0,.22);
    display:flex;
    flex-direction:column;
}
.anvc-video-wrap{
    width:100%;
    aspect-ratio:9/16;
    min-height:0;
    background:#111;
    overflow:hidden;
}
.anvc-video,
.anvc-placeholder{
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
}
.anvc-video{background:#111}
.anvc-placeholder{object-fit:cover}
.anvc-no-video{
    height:100%;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:20px;
    color:#fff;
    text-align:center;
    background:#222;
    font-size:15px;
}
.anvc-info{
    padding:12px 10px 13px;
    text-align:center;
    display:flex;
    flex-direction:column;
    flex:1;
    background:#fff;
}
.anvc-title{
    margin:0 auto 6px;
    color:#222;
    font-size:16px;
    line-height:1.25;
    font-weight:700;
    text-transform:uppercase;
    min-height:40px;
    display:flex;
    align-items:center;
    justify-content:center;
}
.anvc-year{
    color:#222;
    font-size:15px;
    font-weight:600;
    line-height:1.2;
    margin-bottom:12px;
}
.anvc-actions{
    margin-top:auto;
    display:flex;
    flex-direction:row;
    direction:rtl;
    gap:10px;
    width:100%;
    align-items:stretch;
}
.anvc-action-btn{
    flex:1 1 0;
    min-width:0;
    width:50%;
    height:38px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:5px;
    padding:0 8px;
    border:0;
    border-radius:5px;
    color:#fff !important;
    text-decoration:none !important;
    font-size:14px;
    font-weight:600;
    line-height:1;
    white-space:nowrap;
    transition:transform .2s ease,filter .2s ease;
}
.anvc-action-btn:hover{
    color:#fff !important;
    filter:brightness(.93);
    transform:translateY(-1px);
}
.anvc-whatsapp{background:#129c86}
.anvc-details{background:#e31b23}
.anvc-wa-icon{
    width:16px;
    height:16px;
    display:inline-flex;
    flex:0 0 16px;
}
.anvc-wa-icon svg{
    width:100%;
    height:100%;
    fill:currentColor;
}
.anvc-telegram-icon{
    font-size:13px;
    line-height:1;
    transform:rotate(0deg);
}
.anvc-arrow{
    position:absolute;
    top:43%;
    z-index:5;
    width:36px;
    height:52px;
    border:0;
    border-radius:6px;
    background:rgba(0,0,0,.55);
    color:#fff;
    cursor:pointer;
    font-size:38px;
    line-height:42px;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:0;
    transition:background .2s ease;
}
.anvc-arrow:hover{background:rgba(0,0,0,.8)}
.anvc-prev{left:6px}
.anvc-next{right:6px}

@media (max-width:1100px){
    .anvc-slide{
        flex-basis:calc((100% - (var(--anvc-gap) * 2))/3);
    }
}
@media (max-width:767px){
    .anvc-carousel{--anvc-gap:12px}
    .anvc-slide{
        flex:0 0 calc((100% - var(--anvc-gap))/2);
    }
    .anvc-title{font-size:14px;min-height:36px}
    .anvc-year{font-size:14px}
    .anvc-actions{gap:7px}
    .anvc-action-btn{
        height:36px;
        font-size:13px;
        padding:0 5px;
    }
    .anvc-arrow{
        width:30px;
        height:42px;
        font-size:30px;
    }
}
@media (max-width:480px){
    .anvc-slide{flex-basis:82%}
    .anvc-video-wrap{aspect-ratio:9/16}
    .anvc-info{padding:10px 8px 11px}
    .anvc-actions{gap:6px}
    .anvc-action-btn{font-size:12.5px}
    .anvc-arrow{display:none}
}


/* User override: vehicle title and year in pure black */
.anvc-title,
.anvc-year {
    color: #000000 !important;
}


/* =========================================================
   CAROUSEL DIRECTION FIX
   Standard LTR carousel movement:
   - Items remain in normal left-to-right order.
   - Next item enters from the right.
   - Track moves toward the left.
   - Works on desktop, tablet and mobile.
   ========================================================= */
.anvc-carousel,
.anvc-carousel .anvc-viewport,
.anvc-carousel .anvc-track {
    direction: ltr !important;
}

.anvc-carousel .anvc-track {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
}

.anvc-carousel .anvc-slide {
    direction: rtl !important;
    float: none !important;
}

/* Keep the Arabic vehicle content RTL while carousel order stays LTR. */
.anvc-carousel .anvc-info {
    direction: rtl !important;
}
