/* =========== country product slider ============== */

@media only screen and (max-width: 767px) {
  .carousel-home img {
    height: auto !important;
    aspect-ratio: auto var(--mt-image-ratio, 10 / 3) !important;
    -o-object-fit: unset !important;
  }
}


.title.pom {
    width: 141.18px;
    max-width: 141.18px;
    margin-left: auto;
    margin-right: auto;

    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;

    text-align: center;
    line-height: 24px;
}

@media (max-width: 768px) {
    .title.pom {
        width: 115px;
        max-width: 115px;
        margin-left: auto;
        margin-right: auto;
        font-size: 0.9rem;
        line-height: 20px;
    }
}

@media (max-width: 480px) {
    .title.pom {
        width: 120px;
        max-width: 120px;
        font-size: 0.8rem;
        line-height: 18px;
    }
}


@media (max-width: 768px) {

    .fffm {
        display: flex !important;
        flex-wrap: nowrap !important;

        width: 100% !important;
        max-width: 100% !important;

        transform: none !important;

        overflow-x: auto !important;
        overflow-y: hidden !important;

        gap: 15px !important;

        padding: 5px 10px 15px;

        box-sizing: border-box;

        scrollbar-width: thin;
        scrollbar-color: #ccc #f5f5f5;
    }

    .fffm .cpm {
        flex: 0 0 115px !important;
        width: 115px !important;
        max-width: 115px !important;

        margin-right: 0 !important;
        margin-left: 0 !important;

        z-index: 0;
    }

    .fffm .tour-box {
        width: 115px !important;
        max-width: 115px !important;
        margin-left: 0 !important;
    }

    .fffm .title.pom {
        width: 115px !important;
        max-width: 115px !important;

        margin-left: auto !important;
        margin-right: auto !important;

        white-space: normal !important;
    }

    /* Chrome / Safari / Edge */
    .fffm::-webkit-scrollbar {
        height: 5px;
    }

    .fffm::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 10px;
    }

    .fffm::-webkit-scrollbar-thumb {
        background: #c5c5c5;
        border-radius: 10px;
    }

    .fffm::-webkit-scrollbar-thumb:hover {
        background: #999;
    }
}

@media (max-width: 768px) {
	.tour-section .row {
        margin: 0 !important;
    }
}




/* =========================================================
   PRODUCT SLIDER
   قوانین نهایی اسلایدر محصولات
   ========================================================= */

/* دسکتاپ */
.slick-carousel {
    display: flex !important;
    flex-wrap: nowrap !important;

    width: 100% !important;
    max-width: 100% !important;

    overflow-x: auto !important;
    overflow-y: hidden !important;

    gap: 16px !important;
    padding: 10px 0 15px !important;

    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;

    /* اجازه اسکرول صفحه و اسلایدر */
    touch-action: pan-x pan-y !important;

    scrollbar-width: none;
    -ms-overflow-style: none;
}

.slick-carousel::-webkit-scrollbar {
    display: none;
}

/* کارت محصول */
.slick-carousel .col-3 {
    flex: 0 0 auto !important;

    width: 369px !important;
    max-width: 369px !important;
    min-width: 0 !important;

    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;

    transform: none !important;
}

.slick-carousel .tour-item {
    width: 100% !important;
    max-width: 100% !important;

    margin: 0 !important;
    transform: none !important;
}

/* تصویر محصول */
.slick-carousel .tour-item .image,
.slick-carousel .tour-item .cmpmo {
    width: 100% !important;
    overflow: hidden;
}

.slick-carousel .tour-item .image img,
.slick-carousel .tour-item .cmpmo img {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;

    aspect-ratio: 16 / 9;
    object-fit: cover !important;
}


/* =========================================================
   MOBILE PRODUCT SLIDER
   یک کارت کامل + حدود نصف کارت بعدی
   ========================================================= */

@media (max-width: 768px) {

    .slick-carousel {
        width: 100% !important;
        max-width: 100% !important;

        display: flex !important;
        flex-wrap: nowrap !important;

        overflow-x: auto !important;
        overflow-y: hidden !important;

        /* gap: 15px !important; */
        gap: 10px !important;

        padding: 8px 10px 15px !important;
        box-sizing: border-box !important;

        /*
         * هر دو جهت لمس آزاد است:
         * - حرکت افقی: اسلایدر
         * - حرکت عمودی: خود صفحه
         */
        touch-action: pan-x pan-y !important;

        -webkit-overflow-scrolling: touch;

        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .slick-carousel::-webkit-scrollbar {
        display: none;
    }

    /*
     * عرض کارت:
     * حدود 1.5 کارت در فضای قابل مشاهده
     * کارت دیگر 85vw نیست و بیش از حد بزرگ نمی‌شود.
     */
    .slick-carousel .col-3 {
        flex: 0 0 calc((100vw - 35px) / 1.5) !important;
        width: calc((100vw - 35px) / 1.5) !important;

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

        margin: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;

        transform: none !important;
    }

    .slick-carousel .tour-item {
        width: 100% !important;
        max-width: 100% !important;

        margin: 0 !important;
        transform: none !important;
    }

    .slick-carousel .tour-item .image,
    .slick-carousel .tour-item .cmpmo {
        width: 100% !important;
        overflow: hidden;
    }

    .slick-carousel .tour-item .image img,
    .slick-carousel .tour-item .cmpmo img {
        width: 100% !important;
        height: auto !important;

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

        aspect-ratio: 16 / 9;
        object-fit: cover !important;
    }
}

@media (max-width: 768px) {

    .slick-carousel .tour-item .image,
    .slick-carousel .tour-item .cmpmo {
        width: 100% !important;
        max-width: 100% !important;

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

        display: block !important;
        overflow: hidden !important;
    }

    .slick-carousel .tour-item .image img,
    .slick-carousel .tour-item .cmpmo img {
        display: block !important;

        width: 100% !important;
        max-width: 100% !important;

        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;

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

        aspect-ratio: 16 / 9 !important;
        object-fit: cover !important;

        position: relative !important;
        left: auto !important;
        right: auto !important;
    }
}

@media (max-width: 768px) {
    .slick-carousel {    

        padding-right: 45px !important;
        padding-left: 30px !important;
    }

    /* فضای کافی بعد از آخرین کارت */
    .slick-carousel .col-3:last-child {
        margin-left: calc((100vw - 35px) / 1.5) !important;
    }
}



.tour-item .image .location2221 {
  min-width: 84px;
}

.tour-item .btn {
  padding: 14.5px 19px !important;
}


@media (max-width: 576px) {
    .category-tours .left-ccbtn {
        left: 15px !important;
    }
}

@media only screen and (min-width: 768px) {
    .tour-item .price {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .tour-item .price span {
        display: block;
    }
}


@media (max-width: 768px) {
    .hero_post_sect {
        margin-top: 15px !important;
    }
}

@media (max-width: 768px) {
    .category-tours {
        position: relative;
    }

    .left-ccbtn,
    .right-ccbtn {
        height: 100%;
    }
}

.pomen.category-tours {
    gap: 0 !important;
}

.right-ccbtn {
  width: 50px !important;
  background: none !important;
}


.left-ccbtn {
  width: 50px !important;
    background: none !important;
}

@media only screen
and (min-width: 769px)
and (max-width: 991px) {

    .tour-section .col {
        width: auto !important;
        /* flex: 0 0 auto;
        max-width: 20%;
        padding: 0 12px; */
    }
}



/* =========================================
   PRODUCT SLIDER - TABLET LANDSCAPE
   اصلاح موقعیت دکمه‌ها بدون تغییر منطق اسلایدر
   ========================================= */

@media screen
and (min-width: 769px)
and (max-width: 1100px)
and (orientation: landscape) {

    .category-tours {
        position: relative !important;
    }

    .category-tours > .slick-carousel {
        position: relative !important;
    }

    .category-tours > .left-ccbtn,
    .category-tours > .right-ccbtn {
        box-sizing: border-box !important;

        position: absolute !important;
        top: 50% !important;

        width: 60px !important;
        max-width: 60px !important;
        min-width: 60px !important;

        height: auto;
        margin: 0 !important;

        transform: translateY(-50%) !important;
        z-index: 20 !important;
    }

    .category-tours > .left-ccbtn {
        left: 0 !important;
        right: auto !important;
    }

    .category-tours > .right-ccbtn {
        right: 0 !important;
        left: auto !important;
    }


    /* اصلاح جداگانه موقعیت عمودی دکمه چپ */
    .category-tours > .left-ccbtn {
        top: 50% !important;
        bottom: auto !important;
        transform: translateY(-50%) !important;
    }

    
}


@media screen
and (min-width: 769px)
and (max-width: 1100px)
and (orientation: landscape) {

    .category-tours > .left-ccbtn,
    .category-tours > .right-ccbtn {
        top: 0 !important;
        bottom: auto !important;
        transform: none !important;

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

        box-sizing: border-box !important;
    }

    .category-tours > .left-ccbtn .arrowfl,
    .category-tours > .right-ccbtn .arrowfr {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}


@media (max-width: 767px) {
    .category-tours .left-ccbtn,
    .category-tours .right-ccbtn {
        pointer-events: none !important;
    }

    .category-tours .left-ccbtn .arrowfl,
    .category-tours .right-ccbtn .arrowfr {
        pointer-events: auto !important;
    }
}
html body .slick-carousel .tour-item .image a.cmpmo img{object-fit:contain!important;object-position:center!important;}
