/* ==========================================================
   Pelak Azad — Single Car
   Installment Price Details
========================================================== */

.pa-single-price--installment {
    width: 100%;
    min-width: 0;
    direction: rtl;
    text-align: right;
}

.pa-single-price.pa-single-price--installment > .pa-single-price__main {
    margin: 0 0 10px !important;

    font-family: "VazirMatn", "Vazir", Tahoma, Arial, sans-serif !important;
    font-size: 24px !important;
    font-weight: 800 !important;
    line-height: 1.45 !important;

    color: #ed1c24 !important;
    text-align: right !important;
}

.pa-single-installment {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;

    padding: 14px;

    background: #ffffff;
    border: 1px solid #e8ecf1;
    border-radius: 14px;

    direction: rtl;
    text-align: right;
}

.pa-single-installment__heading {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 7px;

    margin: 0 0 8px;
    padding: 0 0 8px;

    border-bottom: 1px solid #eef0f3;

    color: #1f2937;
    font-family: "VazirMatn", "Vazir", Tahoma, Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.7;
}

.pa-single-installment__marker {
    display: block;
    width: 3px;
    height: 15px;
    flex: 0 0 3px;

    background: #ed1c24;
    border-radius: 999px;
}

.pa-single-installment__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;

    width: 100%;
    min-width: 0;
}

.pa-single-installment__item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 3px;

    min-width: 0;
    min-height: 57px;
    box-sizing: border-box;

    padding: 9px 10px;

    background: #f8f9fb;
    border: 1px solid #f0f2f5;
    border-radius: 10px;
}

.pa-single-installment__label,
.pa-single-installment__value {
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;

    font-family: "VazirMatn", "Vazir", Tahoma, Arial, sans-serif;
}

.pa-single-installment__label {
    color: #7a8089;
    font-size: 10.5px;
    font-weight: 400;
    line-height: 1.6;
}

.pa-single-installment__value {
    color: #202124;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.7;

    overflow-wrap: anywhere;
}

.pa-single-installment__item--money .pa-single-installment__value {
    color: #111827;
}

@media (max-width: 767px) {

    .pa-single-price.pa-single-price--installment > .pa-single-price__main {
        margin-bottom: 8px !important;
        font-size: 21px !important;
        line-height: 1.45 !important;
    }

    .pa-single-installment {
        padding: 12px;
        border-radius: 12px;
    }

    .pa-single-price--installment .pa-single-installment__heading {
        margin-bottom: 7px;
        padding-bottom: 7px;
        font-size: 11.5px;
    }

    .pa-single-installment__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

    .pa-single-installment__item {
        min-height: 52px;
        padding: 8px 9px;
        border-radius: 9px;
    }

    .pa-single-installment__label {
        font-size: 11px;
        line-height: 1.5;
    }

    .pa-single-installment__value {
        font-size: 12.5px;
        line-height: 1.65;
    }
}

/* ==========================================================
   Pelak Azad — Single Car
   Quick Specifications
========================================================== */

.pa-single-quick-specs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;

    width: 100%;
    min-width: 0;

    direction: rtl;
}

.pa-single-quick-spec {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 3px;

    min-width: 0;
    min-height: 96px;
    box-sizing: border-box;

    padding: 12px 7px 10px;

    background: #f8f9fb;
    border: 1px solid #eef0f3;
    border-radius: 10px;

    text-align: center;

    transition:
        background-color .18s ease,
        border-color .18s ease,
        transform .18s ease;
}

.pa-single-quick-spec:hover {
    background: #ffffff;
    border-color: #e2e6eb;
    transform: translateY(-1px);
}

.pa-single-quick-spec__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;
    flex: 0 0 28px;

    margin-bottom: 0;

    color: #ed1c24;
}

.pa-single-quick-spec__icon svg {
    display: block;
    width: 24px;
    height: 24px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pa-single-quick-spec__icon img {
    display: block;
    width: 24px;
    height: 24px;
    object-fit: cover;
}

.pa-single-quick-spec__label,
.pa-single-quick-spec__value {
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;

    font-family: "VazirMatn", "Vazir", Tahoma, Arial, sans-serif;
}

.pa-single-quick-spec__label {
    color: #7a8089;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.45;
}

.pa-single-quick-spec__value {
    color: #202124;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.55;

    overflow-wrap: anywhere;
}

@media (max-width: 767px) {

    .pa-single-quick-specs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

    .pa-single-quick-spec {
        min-height: 84px;
        padding: 10px 8px 9px;
        border-radius: 9px;
    }

    .pa-single-quick-spec__icon {
        width: 26px;
        height: 26px;
        flex-basis: 26px;
    }

    .pa-single-quick-spec__icon svg {
        width: 22px;
        height: 22px;
    }

    .pa-single-quick-spec__icon img {
        width: 22px;
        height: 22px;
    }

    .pa-single-quick-spec__label {
        font-size: 10.5px;
        line-height: 1.45;
    }

    .pa-single-quick-spec__value {
        font-size: 12px;
        line-height: 1.55;
    }
}

/* ==========================================================
   Pelak Azad — Single Car
   Professional Gallery
========================================================== */

.pa-single-gallery {
    position: relative;

    width: 100%;
    min-width: 0;

    direction: rtl;
}

.pa-single-gallery__stage {
    position: relative;

    overflow: hidden;

    background: #ffffff;
    border: 1px solid #e8ecf1;
    border-radius: 18px;
    box-shadow: 0 8px 28px rgba(15, 23, 42, .04);
    aspect-ratio: 4 / 3;
}

.pa-single-gallery__main {
    display: block;

    width: 100%;
    height: 100%;
    min-height: 0;

    padding: 0;

    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border: 0;

    cursor: zoom-in;
}

.pa-single-gallery__main img {
    display: block;

    width: 100%;
    height: 100%;
    min-height: 0;

    object-fit: contain;
}

.pa-single-gallery__overlay {
    position: absolute;
    right: 14px;
    left: 14px;
    bottom: 14px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    pointer-events: none;
}

.pa-single-gallery__count,
.pa-single-gallery__all {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 36px;

    padding: 0 14px;

    background: rgba(17, 24, 39, .72);
    backdrop-filter: blur(8px);

    border-radius: 999px;

    color: #ffffff;
    font-family: "VazirMatn", "Vazir", Tahoma, Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}

.pa-single-gallery__all {
    pointer-events: auto;
    cursor: pointer;
    border: 0;
    transition: background-color .18s ease, transform .18s ease;
}

.pa-single-gallery__all:hover {
    background: rgba(237, 28, 36, .92);
    transform: translateY(-1px);
}

.pa-single-gallery__thumbs {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-top: 14px;
    padding-bottom: 2px;

    overflow-x: auto;
    scrollbar-width: thin;
}

.pa-single-gallery__thumb {
    position: relative;

    width: 106px;
    height: 78px;
    flex: 0 0 106px;

    padding: 0;

    background: #ffffff;
    border: 2px solid transparent;
    border-radius: 12px;

    overflow: hidden;
    cursor: pointer;

    transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.pa-single-gallery__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pa-single-gallery__thumb:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(15, 23, 42, .08);
}

.pa-single-gallery__thumb.is-active {
    border-color: #ed1c24;
    box-shadow: 0 10px 20px rgba(237, 28, 36, .12);
}

.pa-single-gallery__nav {
    position: absolute;
    top: 50%;
    z-index: 3;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;

    margin-top: -22px;
    padding: 0;

    background: rgba(255, 255, 255, .95);
    border: 1px solid #e7ebf0;
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .1);

    color: #111827;
    font-size: 28px;
    line-height: 1;

    cursor: pointer;
    transition: transform .18s ease, background-color .18s ease, color .18s ease;
}

.pa-single-gallery__nav:hover,
.pa-single-gallery__lightbox-nav:hover,
.pa-single-gallery__lightbox-close:hover {
    background: #ed1c24;
    color: #ffffff;
    transform: translateY(-1px);
}

.pa-single-gallery__nav.is-prev {
    right: 14px;
}

.pa-single-gallery__nav.is-next {
    left: 14px;
}

.pa-single-gallery__lightbox[hidden] {
    display: none !important;
}

.pa-single-gallery__lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
}

.pa-single-gallery__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, .84);
    backdrop-filter: blur(3px);
}

.pa-single-gallery__dialog {
    position: relative;
    z-index: 2;

    width: min(1200px, calc(100vw - 40px));
    height: min(90vh, 920px);

    margin: 4vh auto 0;
    padding: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: transparent;
}

.pa-single-gallery__lightbox-image-wrap {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;
}

.pa-single-gallery__lightbox-image-wrap img {
    max-width: 100%;
    max-height: 100%;

    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 18px 60px rgba(15, 23, 42, .35);
}

.pa-single-gallery__lightbox-close,
.pa-single-gallery__lightbox-nav {
    position: absolute;
    z-index: 3;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 46px;
    height: 46px;

    padding: 0;

    background: rgba(255, 255, 255, .95);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;

    color: #111827;
    line-height: 1;

    cursor: pointer;
    transition: background-color .18s ease, color .18s ease, transform .18s ease;
}

.pa-single-gallery__lightbox-close {
    top: 12px;
    left: 12px;
    font-size: 30px;
}

.pa-single-gallery__lightbox-nav {
    top: 50%;
    margin-top: -23px;
    font-size: 30px;
}

.pa-single-gallery__lightbox-nav.is-prev {
    right: 16px;
}

.pa-single-gallery__lightbox-nav.is-next {
    left: 16px;
}

.pa-single-gallery__lightbox-count {
    position: absolute;
    right: 20px;
    top: 12px;
    z-index: 3;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 36px;
    padding: 0 14px;

    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    backdrop-filter: blur(8px);

    color: #ffffff;
    font-family: "VazirMatn", "Vazir", Tahoma, Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
}

.pa-gallery-lightbox-open,
.pa-gallery-lightbox-open body {
    overflow: hidden;
}

.pa-single-gallery__empty {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 260px;
    padding: 24px;

    background: #f8fafc;
    border: 1px dashed #d6dde6;
    border-radius: 18px;

    color: #6b7280;
    font-family: "VazirMatn", "Vazir", Tahoma, Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

@media (max-width: 1024px) {
    .pa-single-gallery__main,
    .pa-single-gallery__main img {
        min-height: 0;
    }

    .pa-single-gallery__thumb {
        width: 94px;
        height: 70px;
        flex-basis: 94px;
    }
}

@media (max-width: 767px) {
    .pa-single-gallery__stage {
        border-radius: 16px;
    }

    .pa-single-gallery__main,
    .pa-single-gallery__main img {
        min-height: 0;
    }

    .pa-single-gallery__nav {
        width: 38px;
        height: 38px;
        margin-top: -19px;
        font-size: 24px;
    }

    .pa-single-gallery__nav.is-prev {
        right: 10px;
    }

    .pa-single-gallery__nav.is-next {
        left: 10px;
    }

    .pa-single-gallery__overlay {
        right: 10px;
        left: 10px;
        bottom: 10px;
        gap: 8px;
    }

    .pa-single-gallery__count,
    .pa-single-gallery__all {
        min-height: 32px;
        padding: 0 10px;
        font-size: 11px;
    }

    .pa-single-gallery__thumbs {
        gap: 8px;
        margin-top: 10px;
    }

    .pa-single-gallery__thumb {
        width: 82px;
        height: 62px;
        flex-basis: 82px;
        border-radius: 10px;
    }

    .pa-single-gallery__dialog {
        width: min(100vw, calc(100vw - 16px));
        height: min(92vh, 760px);
        padding: 10px;
        margin-top: 4vh;
    }

    .pa-single-gallery__lightbox-close,
    .pa-single-gallery__lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 26px;
    }

    .pa-single-gallery__lightbox-close {
        top: 6px;
        left: 6px;
    }

    .pa-single-gallery__lightbox-nav.is-prev {
        right: 8px;
    }

    .pa-single-gallery__lightbox-nav.is-next {
        left: 8px;
    }

    .pa-single-gallery__lightbox-count {
        right: 8px;
        top: 6px;
        min-height: 32px;
        padding: 0 10px;
        font-size: 11px;
    }

    .pa-single-gallery__lightbox-image-wrap img {
        border-radius: 12px;
    }
}

/* ==========================================================
   Pelak Azad — Single Car Gallery
   Isolation from Elementor / theme global button styles
========================================================== */

.pa-single-gallery button,
.pa-single-gallery button:hover,
.pa-single-gallery button:focus,
.pa-single-gallery button:active {
    -webkit-appearance: none !important;
    appearance: none !important;

    min-width: 0 !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;

    font: inherit !important;
    text-transform: none !important;
    letter-spacing: normal !important;

    outline: 0 !important;
}

/* Main image button: remove global button padding/background */
.pa-single-gallery .pa-single-gallery__main,
.pa-single-gallery .pa-single-gallery__main:hover,
.pa-single-gallery .pa-single-gallery__main:focus,
.pa-single-gallery .pa-single-gallery__main:active {
    display: block !important;

    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    background: #f8fafc !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;

    color: inherit !important;
    line-height: 0 !important;

    transform: none !important;
    overflow: hidden !important;
}

.pa-single-gallery .pa-single-gallery__main img {
    display: block !important;

    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    min-height: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    object-fit: cover !important;
    object-position: center center !important;

    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Thumbnail buttons */
.pa-single-gallery .pa-single-gallery__thumb,
.pa-single-gallery .pa-single-gallery__thumb:hover,
.pa-single-gallery .pa-single-gallery__thumb:focus,
.pa-single-gallery .pa-single-gallery__thumb:active {
    display: block !important;

    width: 106px !important;
    min-width: 106px !important;
    max-width: 106px !important;
    height: 78px !important;
    min-height: 78px !important;
    max-height: 78px !important;
    flex: 0 0 106px !important;

    margin: 0 !important;
    padding: 0 !important;

    background: #ffffff !important;
    border: 2px solid transparent !important;
    border-radius: 12px !important;
    box-shadow: none !important;

    line-height: 0 !important;
    overflow: hidden !important;
    transform: none !important;
}

.pa-single-gallery .pa-single-gallery__thumb:hover {
    border-color: #dfe4ea !important;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .08) !important;
    transform: translateY(-1px) !important;
}

.pa-single-gallery .pa-single-gallery__thumb.is-active,
.pa-single-gallery .pa-single-gallery__thumb.is-active:hover,
.pa-single-gallery .pa-single-gallery__thumb.is-active:focus {
    background: #ffffff !important;
    border-color: #ed1c24 !important;
    box-shadow: 0 8px 20px rgba(237, 28, 36, .12) !important;
}

.pa-single-gallery .pa-single-gallery__thumb img {
    display: block !important;

    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    min-height: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    object-fit: cover !important;
    object-position: center center !important;

    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Previous / next buttons */
.pa-single-gallery .pa-single-gallery__nav,
.pa-single-gallery .pa-single-gallery__nav:hover,
.pa-single-gallery .pa-single-gallery__nav:focus,
.pa-single-gallery .pa-single-gallery__nav:active {
    position: absolute !important;
    top: 50% !important;
    z-index: 4 !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;

    margin-top: -22px !important;
    padding: 0 !important;

    background: rgba(17, 24, 39, .74) !important;
    border: 1px solid rgba(255, 255, 255, .28) !important;
    border-radius: 999px !important;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .16) !important;

    color: #ffffff !important;
    font-size: 0 !important;
    font-weight: 400 !important;
    line-height: 0 !important;

    transform: none !important;

    text-indent: 0 !important;
    text-decoration: none !important;
}

.pa-single-gallery .pa-single-gallery__nav::before,
.pa-single-gallery .pa-single-gallery__nav::after {
    content: none !important;
    display: none !important;
}

.pa-single-gallery .pa-single-gallery__nav svg {
    display: block !important;
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2.2 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
    pointer-events: none !important;
}

.pa-single-gallery .pa-single-gallery__nav:hover {
    background: rgba(17, 24, 39, .9) !important;
    border-color: rgba(255, 255, 255, .38) !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
}

.pa-single-gallery .pa-single-gallery__nav.is-prev {
    right: 14px !important;
    left: auto !important;
}

.pa-single-gallery .pa-single-gallery__nav.is-next {
    right: auto !important;
    left: 14px !important;
}

/* Overlay controls */
.pa-single-gallery .pa-single-gallery__all,
.pa-single-gallery .pa-single-gallery__all:hover,
.pa-single-gallery .pa-single-gallery__all:focus,
.pa-single-gallery .pa-single-gallery__all:active {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 36px !important;
    height: 36px !important;

    padding: 0 14px !important;

    background: rgba(17, 24, 39, .76) !important;
    border: 0 !important;
    border-radius: 999px !important;
    box-shadow: none !important;

    color: #ffffff !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1 !important;

    transform: none !important;
}

.pa-single-gallery .pa-single-gallery__all:hover {
    background: #ed1c24 !important;
    transform: translateY(-1px) !important;
}

/* Lightbox buttons also stay independent from global styles */
.pa-single-gallery .pa-single-gallery__lightbox-close,
.pa-single-gallery .pa-single-gallery__lightbox-nav,
.pa-single-gallery .pa-single-gallery__lightbox-close:hover,
.pa-single-gallery .pa-single-gallery__lightbox-nav:hover,
.pa-single-gallery .pa-single-gallery__lightbox-close:focus,
.pa-single-gallery .pa-single-gallery__lightbox-nav:focus {
    padding: 0 !important;
    background: rgba(255, 255, 255, .96) !important;
    border: 1px solid rgba(255, 255, 255, .18) !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    color: #111827 !important;
}

.pa-single-gallery .pa-single-gallery__lightbox-close:hover,
.pa-single-gallery .pa-single-gallery__lightbox-nav:hover {
    background: #ed1c24 !important;
    border-color: #ed1c24 !important;
    color: #ffffff !important;
}

.pa-single-gallery .pa-single-gallery__lightbox-nav.is-prev {
    right: 16px !important;
    left: auto !important;
}

.pa-single-gallery .pa-single-gallery__lightbox-nav.is-next {
    right: auto !important;
    left: 16px !important;
}

.pa-single-gallery .pa-single-gallery__lightbox-nav svg {
    display: block !important;
    width: 19px !important;
    height: 19px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2.2 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
    pointer-events: none !important;
}

@media (max-width: 1024px) {
    .pa-single-gallery .pa-single-gallery__stage {
        aspect-ratio: 4 / 3;
    }

    .pa-single-gallery .pa-single-gallery__main,
    .pa-single-gallery .pa-single-gallery__main img {
        min-height: 0 !important;
    }

    .pa-single-gallery .pa-single-gallery__thumb,
    .pa-single-gallery .pa-single-gallery__thumb:hover,
    .pa-single-gallery .pa-single-gallery__thumb:focus {
        width: 94px !important;
        min-width: 94px !important;
        max-width: 94px !important;
        height: 70px !important;
        min-height: 70px !important;
        max-height: 70px !important;
        flex-basis: 94px !important;
    }
}

@media (max-width: 767px) {
    .pa-single-gallery .pa-single-gallery__stage {
        aspect-ratio: 4 / 3;
    }

    .pa-single-gallery .pa-single-gallery__main,
    .pa-single-gallery .pa-single-gallery__main img {
        min-height: 0 !important;
    }

    .pa-single-gallery .pa-single-gallery__nav,
    .pa-single-gallery .pa-single-gallery__nav:hover,
    .pa-single-gallery .pa-single-gallery__nav:focus {
        width: 38px !important;
        min-width: 38px !important;
        max-width: 38px !important;
        height: 38px !important;
        min-height: 38px !important;
        max-height: 38px !important;
        margin-top: -19px !important;
        font-size: 24px !important;
    }

    .pa-single-gallery .pa-single-gallery__nav svg {
        width: 16px !important;
        height: 16px !important;
    }

    .pa-single-gallery .pa-single-gallery__nav.is-prev {
        right: 10px !important;
        left: auto !important;
    }

    .pa-single-gallery .pa-single-gallery__nav.is-next {
        right: auto !important;
        left: 10px !important;
    }

    .pa-single-gallery .pa-single-gallery__all,
    .pa-single-gallery .pa-single-gallery__all:hover,
    .pa-single-gallery .pa-single-gallery__all:focus {
        height: 32px !important;
        min-height: 32px !important;
        padding: 0 10px !important;
        font-size: 11px !important;
    }

    .pa-single-gallery .pa-single-gallery__thumb,
    .pa-single-gallery .pa-single-gallery__thumb:hover,
    .pa-single-gallery .pa-single-gallery__thumb:focus {
        width: 82px !important;
        min-width: 82px !important;
        max-width: 82px !important;
        height: 62px !important;
        min-height: 62px !important;
        max-height: 62px !important;
        flex-basis: 82px !important;
        border-radius: 10px !important;
    }

    .pa-single-gallery .pa-single-gallery__lightbox-nav.is-prev {
        right: 8px !important;
        left: auto !important;
    }

    .pa-single-gallery .pa-single-gallery__lightbox-nav.is-next {
        right: auto !important;
        left: 8px !important;
    }
}

/* ==========================================================
   Pelak Azad — Single Car Gallery
   Thumbnail Carousel
========================================================== */

.pa-single-gallery__thumb-carousel {
    position: relative;
    width: 100%;
    min-width: 0;
    margin-top: 14px;
}

.pa-single-gallery__thumb-carousel .pa-single-gallery__thumbs {
    margin-top: 0;
    padding: 0 2px 3px;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    overscroll-behavior-inline: contain;
}

.pa-single-gallery__thumb-carousel .pa-single-gallery__thumb {
    scroll-snap-align: center;
}

.pa-single-gallery__thumb-nav[hidden] {
    display: none !important;
}

.pa-single-gallery .pa-single-gallery__thumb-nav,
.pa-single-gallery .pa-single-gallery__thumb-nav:hover,
.pa-single-gallery .pa-single-gallery__thumb-nav:focus,
.pa-single-gallery .pa-single-gallery__thumb-nav:active {
    position: absolute !important;
    top: 50% !important;
    z-index: 8 !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;

    margin: -16px 0 0 !important;
    padding: 0 !important;

    background: rgba(17, 24, 39, .82) !important;
    border: 1px solid rgba(255, 255, 255, .32) !important;
    border-radius: 999px !important;
    box-shadow: 0 7px 18px rgba(15, 23, 42, .18) !important;

    color: #ffffff !important;
    font-size: 0 !important;
    line-height: 0 !important;

    cursor: pointer !important;
    transform: none !important;
    transition: background-color .18s ease, transform .18s ease, opacity .18s ease !important;
}

.pa-single-gallery .pa-single-gallery__thumb-nav:hover {
    background: #ed1c24 !important;
    transform: translateY(-1px) !important;
}

.pa-single-gallery .pa-single-gallery__thumb-nav::before,
.pa-single-gallery .pa-single-gallery__thumb-nav::after {
    content: none !important;
    display: none !important;
}

.pa-single-gallery .pa-single-gallery__thumb-nav svg {
    display: block !important;
    width: 15px !important;
    height: 15px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
    pointer-events: none !important;
}

.pa-single-gallery .pa-single-gallery__thumb-nav.is-prev {
    right: 7px !important;
    left: auto !important;
}

.pa-single-gallery .pa-single-gallery__thumb-nav.is-next {
    right: auto !important;
    left: 7px !important;
}

.pa-single-gallery__thumb-carousel.has-overflow .pa-single-gallery__thumbs {
    padding-inline: 42px;
}

/* Hidden must always win over the isolated button styles. */
.pa-single-gallery .pa-single-gallery__thumb-nav[hidden] {
    display: none !important;
}

@media (max-width: 767px) {
    .pa-single-gallery__thumb-carousel {
        margin-top: 10px;
    }

    .pa-single-gallery__thumb-carousel .pa-single-gallery__thumbs,
    .pa-single-gallery__thumb-carousel.has-overflow .pa-single-gallery__thumbs {
        padding-inline: 0;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .pa-single-gallery__thumb-carousel .pa-single-gallery__thumbs::-webkit-scrollbar {
        display: none;
    }

    .pa-single-gallery .pa-single-gallery__thumb-nav {
        display: none !important;
    }
}

/* ==========================================================
   Pelak Azad — Single Car
   Technical Specifications
========================================================== */

.pa-single-technical {
    width: 100%;
    min-width: 0;

    direction: rtl;
}

.pa-single-technical__title {
    margin: 0 0 16px !important;

    color: #111827;
    font-family: "VazirMatn", "Vazir", Tahoma, Arial, sans-serif !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    line-height: 1.6 !important;
    text-align: right !important;
}

.pa-single-technical-specs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;

    width: 100%;
    min-width: 0;
}

.pa-single-technical-spec {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 3px;

    min-width: 0;
    min-height: 100px;
    box-sizing: border-box;

    padding: 13px 10px 11px;

    background: #f8f9fb;
    border: 1px solid #eef0f3;
    border-radius: 11px;

    text-align: center;

    transition:
        background-color .18s ease,
        border-color .18s ease,
        transform .18s ease;
}

.pa-single-technical-spec:hover {
    background: #ffffff;
    border-color: #e2e6eb;
    transform: translateY(-1px);
}

.pa-single-technical-spec__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;
    flex: 0 0 28px;

    color: #ed1c24;
}

.pa-single-technical-spec__icon svg {
    display: block;
    width: 23px;
    height: 23px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pa-single-technical-spec__label,
.pa-single-technical-spec__value {
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;

    font-family: "VazirMatn", "Vazir", Tahoma, Arial, sans-serif !important;
}

.pa-single-technical-spec__label {
    color: #7a8089;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.45;
}

.pa-single-technical-spec__value {
    color: #202124;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.55;

    overflow-wrap: anywhere;
}

@media (max-width: 767px) {
    .pa-single-technical__title {
        margin-bottom: 12px !important;
        font-size: 18px !important;
    }

    .pa-single-technical-specs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

    .pa-single-technical-spec {
        min-height: 86px;
        padding: 10px 8px 9px;
        border-radius: 9px;
    }

    .pa-single-technical-spec__icon {
        width: 25px;
        height: 25px;
        flex-basis: 25px;
    }

    .pa-single-technical-spec__icon svg {
        width: 21px;
        height: 21px;
    }

    .pa-single-technical-spec__label {
        font-size: 10.5px;
        line-height: 1.45;
    }

    .pa-single-technical-spec__value {
        font-size: 12px;
        line-height: 1.55;
    }
}

/* ==========================================================
   Pelak Azad — Single Car
   Seller Description
========================================================== */

.pa-single-seller-description {
    width: 100%;
    min-width: 0;

    padding: 18px;

    background: #ffffff;
    border: 1px solid #e8ecf1;
    border-radius: 16px;

    direction: rtl;
    text-align: right;
}

.pa-single-seller-description__heading {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 13px;
    padding-bottom: 12px;

    border-bottom: 1px solid #eef0f3;
}

.pa-single-seller-description__marker {
    display: block;

    width: 4px;
    height: 30px;
    flex: 0 0 4px;

    background: #ed1c24;
    border-radius: 999px;
}

.pa-single-seller-description__heading-text {
    min-width: 0;
}

.pa-single-seller-description__heading h2 {
    margin: 0 !important;

    color: #111827 !important;
    font-family: "VazirMatn", "Vazir", Tahoma, Arial, sans-serif !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    line-height: 1.55 !important;
}

.pa-single-seller-description__heading-text > span {
    display: block;
    margin-top: 2px;

    color: #9aa1aa;
    font-family: "VazirMatn", "Vazir", Tahoma, Arial, sans-serif;
    font-size: 10px;
    font-weight: 400;
    line-height: 1.7;
}

.pa-single-seller-description__content {
    position: relative;

    padding: 15px 16px;

    background: #f8f9fb;
    border: 1px solid #eef0f3;
    border-radius: 12px;
}

.pa-single-seller-description__text,
.pa-single-seller-description__text p {
    color: #4b5563;
    font-family: "VazirMatn", "Vazir", Tahoma, Arial, sans-serif !important;
    font-size: 13px;
    font-weight: 400;
    line-height: 2.05;
}

.pa-single-seller-description__text p {
    margin: 0 0 8px;
}

.pa-single-seller-description__text p:last-child {
    margin-bottom: 0;
}

.pa-single-seller-description__text a {
    color: #ed1c24;
    font-weight: 600;
    text-decoration: none;
}

.pa-single-seller-description__text a:hover {
    text-decoration: underline;
}

.pa-single-seller-description__empty {
    margin: 0;

    color: #8b929c;
    font-family: "VazirMatn", "Vazir", Tahoma, Arial, sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.9;
}

.pa-single-seller-description.is-empty .pa-single-seller-description__content {
    background: #fafbfc;
    border-style: dashed;
}

@media (max-width: 767px) {
    .pa-single-seller-description {
        padding: 14px;
        border-radius: 13px;
    }

    .pa-single-seller-description__heading {
        gap: 8px;
        margin-bottom: 10px;
        padding-bottom: 10px;
    }

    .pa-single-seller-description__marker {
        width: 3px;
        height: 27px;
        flex-basis: 3px;
    }

    .pa-single-seller-description__heading h2 {
        font-size: 16px !important;
    }

    .pa-single-seller-description__heading-text > span {
        font-size: 10.5px;
        line-height: 1.7;
    }

    .pa-single-seller-description__content {
        padding: 12px 13px;
        border-radius: 10px;
    }

    .pa-single-seller-description__text,
    .pa-single-seller-description__text p {
        font-size: 13px;
        line-height: 2;
    }

    .pa-single-seller-description__empty {
        font-size: 12.5px;
        line-height: 1.9;
    }
}

/* ==========================================================
   Pelak Azad — Single Car
   Final vertical rhythm refinements
========================================================== */

/* Pull the seller description slightly closer to the hero/summary block. */
.pa-single-seller-description {
    margin-top: -18px;
}

/* Short descriptions should not feel like a large empty content block. */
.pa-single-seller-description.is-short {
    padding-top: 15px;
    padding-bottom: 15px;
}

.pa-single-seller-description.is-short .pa-single-seller-description__heading {
    margin-bottom: 9px;
    padding-bottom: 9px;
}

.pa-single-seller-description.is-short .pa-single-seller-description__content {
    padding: 10px 14px;
}

.pa-single-seller-description.is-short .pa-single-seller-description__text,
.pa-single-seller-description.is-short .pa-single-seller-description__text p {
    line-height: 1.8;
}

@media (max-width: 767px) {
    .pa-single-seller-description {
        margin-top: -8px;
    }

    .pa-single-seller-description.is-short {
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .pa-single-seller-description.is-short .pa-single-seller-description__content {
        padding: 9px 12px;
    }
}

/* ==========================================================
   v1.1.72.186 — Single gallery technical polish
========================================================== */
.pa-single-gallery__thumb-carousel[hidden] {
    display: none !important;
}

.pa-single-gallery__dialog:focus {
    outline: none !important;
}

/* ==========================================================
   v1.1.72.375 — Single car typography readability pass
========================================================== */
.pa-single-installment__heading {
    font-size: 13px;
}

.pa-single-installment__label,
.pa-single-quick-spec__label,
.pa-single-technical-spec__label {
    color: #667085;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.65;
}

.pa-single-installment__value,
.pa-single-quick-spec__value,
.pa-single-technical-spec__value {
    color: #1f2937;
    font-size: 14px;
    line-height: 1.7;
}

.pa-single-seller-description__heading-text > span {
    color: #7c8797;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.8;
}

.pa-single-seller-description__text,
.pa-single-seller-description__text p {
    color: #3f4a5a;
    font-size: 15px;
    line-height: 2;
}

.pa-single-seller-description.is-short .pa-single-seller-description__text,
.pa-single-seller-description.is-short .pa-single-seller-description__text p {
    line-height: 1.9;
}

.pa-single-seller-description__empty {
    color: #667085;
    font-size: 14px;
    line-height: 1.9;
}

@media (max-width: 767px) {
    .pa-single-installment__heading {
        font-size: 12.5px;
    }

    .pa-single-installment__label,
    .pa-single-quick-spec__label,
    .pa-single-technical-spec__label {
        font-size: 12px;
    }

    .pa-single-installment__value,
    .pa-single-quick-spec__value,
    .pa-single-technical-spec__value {
        font-size: 13.5px;
    }

    .pa-single-seller-description__heading-text > span {
        font-size: 12px;
    }

    .pa-single-seller-description__text,
    .pa-single-seller-description__text p {
        font-size: 14px;
        line-height: 2;
    }

    .pa-single-seller-description__empty {
        font-size: 13.5px;
    }
}

/* ==========================================================
   v1.1.72.481 — Seller message button component
   Moved from Elementor custom CSS into the child theme.
   Scoped to the single-car message widget so Elementor/theme
   link/button states cannot override its visual treatment.
========================================================== */
body.single-car_ads .pelak-message-shortcode {
    width: auto !important;
    max-width: 100% !important;
    flex: 0 0 auto !important;
    align-self: center !important;
}

body.single-car_ads .pelak-message-shortcode .elementor-widget-container {
    width: auto !important;
    max-width: 100% !important;
    display: inline-flex !important;
    align-items: center !important;
}

body.single-car_ads .pelak-message-shortcode a,
body.single-car_ads .pelak-message-shortcode button,
body.single-car_ads .pelak-message-shortcode .pelak-message-seller,
body.single-car_ads .pelak-message-shortcode a:link,
body.single-car_ads .pelak-message-shortcode a:visited {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    margin: 0 !important;
    padding: 6px 17px !important;
    direction: rtl !important;
    text-align: center !important;
    white-space: nowrap !important;
    color: #ed1c24 !important;
    -webkit-text-fill-color: #ed1c24 !important;
    fill: #ed1c24 !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    background-image: none !important;
    border: 1px solid #ed1c24 !important;
    border-radius: 5px !important;
    box-shadow: none !important;
    text-shadow: none !important;
    text-decoration: none !important;
    font-family: "VazirMatn", "Vazirmatn", sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
    opacity: 1 !important;
    visibility: visible !important;
    cursor: pointer !important;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .15s ease !important;
}

/* Custom line-message icon. */
body.single-car_ads .pelak-message-shortcode a::before,
body.single-car_ads .pelak-message-shortcode button::before,
body.single-car_ads .pelak-message-shortcode .pelak-message-seller::before {
    content: "" !important;
    width: 19px !important;
    height: 19px !important;
    flex: 0 0 19px !important;
    display: inline-block !important;
    background-color: currentColor !important;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a4 4 0 0 1-4 4H8l-5 3V7a4 4 0 0 1 4-4h10a4 4 0 0 1 4 4z'/%3E%3Cpath d='M8 9h8'/%3E%3Cpath d='M8 13h5'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a4 4 0 0 1-4 4H8l-5 3V7a4 4 0 0 1 4-4h10a4 4 0 0 1 4 4z'/%3E%3Cpath d='M8 9h8'/%3E%3Cpath d='M8 13h5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Better Messages' native icon is intentionally replaced above. */
body.single-car_ads .pelak-message-shortcode i,
body.single-car_ads .pelak-message-shortcode svg,
body.single-car_ads .pelak-message-shortcode .bp-better-messages-icon {
    display: none !important;
}

/* Keep every interactive state outline-only. */
body.single-car_ads .pelak-message-shortcode a:hover,
body.single-car_ads .pelak-message-shortcode button:hover,
body.single-car_ads .pelak-message-shortcode .pelak-message-seller:hover,
body.single-car_ads .pelak-message-shortcode a:focus,
body.single-car_ads .pelak-message-shortcode button:focus,
body.single-car_ads .pelak-message-shortcode .pelak-message-seller:focus,
body.single-car_ads .pelak-message-shortcode a:focus-visible,
body.single-car_ads .pelak-message-shortcode button:focus-visible,
body.single-car_ads .pelak-message-shortcode .pelak-message-seller:focus-visible,
body.single-car_ads .pelak-message-shortcode a:active,
body.single-car_ads .pelak-message-shortcode button:active,
body.single-car_ads .pelak-message-shortcode .pelak-message-seller:active {
    color: #d9161e !important;
    -webkit-text-fill-color: #d9161e !important;
    fill: #d9161e !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    background-image: none !important;
    border-color: #d9161e !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

body.single-car_ads .pelak-message-shortcode a:hover *,
body.single-car_ads .pelak-message-shortcode a:focus *,
body.single-car_ads .pelak-message-shortcode a:focus-visible *,
body.single-car_ads .pelak-message-shortcode a:active *,
body.single-car_ads .pelak-message-shortcode .pelak-message-seller:hover *,
body.single-car_ads .pelak-message-shortcode .pelak-message-seller:focus *,
body.single-car_ads .pelak-message-shortcode .pelak-message-seller:focus-visible *,
body.single-car_ads .pelak-message-shortcode .pelak-message-seller:active * {
    color: inherit !important;
    -webkit-text-fill-color: inherit !important;
    opacity: 1 !important;
    visibility: visible !important;
}

body.single-car_ads .pelak-message-shortcode a:active,
body.single-car_ads .pelak-message-shortcode button:active,
body.single-car_ads .pelak-message-shortcode .pelak-message-seller:active {
    transform: scale(.98) !important;
}

body.single-car_ads .pelak-message-shortcode a:focus-visible,
body.single-car_ads .pelak-message-shortcode button:focus-visible,
body.single-car_ads .pelak-message-shortcode .pelak-message-seller:focus-visible {
    outline: 2px solid rgba(237, 28, 36, .22) !important;
    outline-offset: 2px !important;
}

@media (max-width: 767px) {
    body.single-car_ads .pelak-message-shortcode a,
    body.single-car_ads .pelak-message-shortcode button,
    body.single-car_ads .pelak-message-shortcode .pelak-message-seller {
        padding: 9px 18px !important;
        font-size: 13px !important;
    }

    body.single-car_ads .pelak-message-shortcode a::before,
    body.single-car_ads .pelak-message-shortcode button::before,
    body.single-car_ads .pelak-message-shortcode .pelak-message-seller::before {
        width: 18px !important;
        height: 18px !important;
        flex-basis: 18px !important;
    }
}

/* ==========================================================
   v1.1.72.483 — Better Messages button-text geometry guard
   Probe evidence showed the text remains red/visible in DOM
   after click, so lock the actual text node geometry/rendering
   instead of adding more color specificity.
========================================================== */
body.single-car_ads .pelak-message-shortcode .pelak-message-seller .bm-button-text {
    display: inline-block !important;
    flex: 0 1 auto !important;
    width: auto !important;
    min-width: auto !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    clip: auto !important;
    clip-path: none !important;
    position: static !important;
    inset: auto !important;
    transform: none !important;
    translate: none !important;
    scale: none !important;
    text-indent: 0 !important;
    white-space: nowrap !important;
    font-family: "VazirMatn", "Vazirmatn", sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
    opacity: 1 !important;
    visibility: visible !important;
    color: #ed1c24 !important;
    -webkit-text-fill-color: #ed1c24 !important;
    -webkit-text-stroke-width: 0 !important;
    filter: none !important;
    mix-blend-mode: normal !important;
}

body.single-car_ads .pelak-message-shortcode .pelak-message-seller:hover .bm-button-text,
body.single-car_ads .pelak-message-shortcode .pelak-message-seller:focus .bm-button-text,
body.single-car_ads .pelak-message-shortcode .pelak-message-seller:focus-visible .bm-button-text,
body.single-car_ads .pelak-message-shortcode .pelak-message-seller:active .bm-button-text {
    color: #d9161e !important;
    -webkit-text-fill-color: #d9161e !important;
}

@media (max-width: 767px) {
    body.single-car_ads .pelak-message-shortcode .pelak-message-seller .bm-button-text {
        font-size: 13px !important;
    }
}
