/* Pelak Azad Promotions — public Showcase badge v1.0.3.6 */

.pap-showcase-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 7;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    line-height: 0;
    pointer-events: auto;
    cursor: default;
}

.pap-showcase-badge__icon {
    display: block;
    width: 36px;
    height: 36px;
}

.pa-agahi-card__media {
    position: relative;
}

.pap-showcase-badge::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 50%;
    right: calc(100% + 8px);
    transform: translateY(-50%) translateX(6px);
    opacity: 0;
    visibility: hidden;
    white-space: nowrap;
    padding: 6px 10px;
    border-radius: 12px;
    background: #ed1c24;
    color: #fff;
    font-family: "VazirMatn", Vazir, Tahoma, sans-serif;
    font-size: 11.5px;
    line-height: 1.1;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(237, 28, 36, .16);
    transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}

.pap-showcase-badge::before {
    content: "";
    position: absolute;
    top: 50%;
    right: calc(100% + 3px);
    transform: translateY(-50%) translateX(6px);
    opacity: 0;
    visibility: hidden;
    border-width: 5px 0 5px 5px;
    border-style: solid;
    border-color: transparent transparent transparent #ed1c24;
    transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}

.pap-showcase-badge:hover::after,
.pap-showcase-badge:hover::before,
.pap-showcase-badge:focus-visible::after,
.pap-showcase-badge:focus-visible::before {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

.pa-home-car-card:has(.pap-showcase-marker) .pa-home-car-card-image {
    position: relative;
}

.pa-home-car-card:has(.pap-showcase-marker) .pa-home-car-card-image::before {
    content: "";
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 7;
    width: 36px;
    height: 36px;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20width%3D%2736%27%20height%3D%2736%27%20viewBox%3D%270%200%2034%2034%27%3E%3Cpolygon%20points%3D%2717.00%2C2.30%2020.11%2C5.41%2024.35%2C4.27%2025.49%2C8.51%2029.73%2C9.65%2028.59%2C13.89%2031.70%2C17.00%2028.59%2C20.11%2029.73%2C24.35%2025.49%2C25.49%2024.35%2C29.73%2020.11%2C28.59%2017.00%2C31.70%2013.89%2C28.59%209.65%2C29.73%208.51%2C25.49%204.27%2C24.35%205.41%2C20.11%202.30%2C17.00%205.41%2C13.89%204.27%2C9.65%208.51%2C8.51%209.65%2C4.27%2013.89%2C5.41%27%20fill%3D%27%23ED1C24%27/%3E%3Cpath%20d%3D%27M10.4%2017.2L14.45%2021.25L23.75%2011.95%27%20fill%3D%27none%27%20stroke%3D%27%23FFFFFF%27%20stroke-width%3D%273.1%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27/%3E%3C/svg%3E");
}

.pa-home-car-card:has(.pap-showcase-marker) .pa-home-car-card-image::after {
    content: "ویترین";
    position: absolute;
    top: 26px;
    right: 50px;
    z-index: 8;
    transform: translateY(-50%) translateX(6px);
    opacity: 0;
    visibility: hidden;
    white-space: nowrap;
    padding: 6px 10px;
    border-radius: 12px;
    background: #ed1c24;
    color: #fff;
    font-family: "VazirMatn", Vazir, Tahoma, sans-serif;
    font-size: 11.5px;
    line-height: 1.1;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(237, 28, 36, .16);
    transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}

.pa-home-car-card:has(.pap-showcase-marker) .pa-home-car-card-image:hover::after,
.pa-home-car-card:has(.pap-showcase-marker) .pa-home-car-card-image:focus-within::after {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

@media (max-width: 767px) {
    .pap-showcase-badge,
    .pap-showcase-badge__icon,
    .pa-home-car-card:has(.pap-showcase-marker) .pa-home-car-card-image::before {
        width: 32px;
        height: 32px;
    }

    .pap-showcase-badge,
    .pa-home-car-card:has(.pap-showcase-marker) .pa-home-car-card-image::before {
        top: 7px;
        right: 7px;
    }

    .pap-showcase-badge::after,
    .pap-showcase-badge::before,
    .pa-home-car-card:has(.pap-showcase-marker) .pa-home-car-card-image::after {
        display: none;
    }
}
