@charset "utf-8";

::-webkit-scrollbar {
    width: 6px;
}

/* Track */
::-webkit-scrollbar-track {
    background: #d1d5db;
    border-radius: 10px;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: #6b7280;
    border-radius: 10px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: #4b5563;
}


html, body {
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
}

#app {
    width: 100%;
    height: 100%;
}

.mapp-container .mapp-search button, .mapp-container .mapp-search .wrapper .last, .cssmask .mapp-container .suggestions .icon:hover, .cssmask .mapp-container .item-set .icon-background.is-lighter .icon, .mapp-container .item-set .icon-background.is-lighter:hover, .cssmask .mapp-loader::after{
    background-color: #1251d4;
}

.tooltipster-content{
    color: #1251d4 !important;
}



.mapp-logo{
    display: none !important;
}


.my-custom-popup {
    border-radius: 16px !important; /* گرد کردن لبه‌های پاپ‌آپ */
    padding: 0 !important;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
    border: none !important;
}

/* حذف حاشیه‌های پیش‌فرض Leaflet اگر وجود دارد */
.leaflet-popup-content-wrapper {
    border-radius: 16px !important;
}

.popup-container {
    padding: 12px;
    background: #fff;
    text-align: right;
    direction: rtl;
}

.popup-image {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}

.popup-title {
    font-size: 15px !important;
    font-weight: 700;
    color: #1a1a1a;
    margin: 10px 0 5px 0;
}

.popup-desc {
    font-size: 12px !important;
    color: #717171;
    line-height: 2;
    margin-bottom: 20px !important;
}

.popup-price-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f0f0f0;
    padding-top: 10px;
}

.popup-price {
    font-size: 14px;
    font-weight: 800;
    color: #1251d4; /* رنگ سازمانی شما */
}

.popup-image {
    transition: transform 0.3s ease;
}
.my-custom-popup:hover .popup-image {
    transform: scale(1.03); /* زوم ملایم تصویر هنگام هاور */
}

.mapp-container .leaflet-popup-content{
    width: 200px !important;
}

.header-section {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 9999;
    width: 100%;
    background: #fff;
    box-shadow: #0000009c -1px -1px 20px;
}

.float-btn-support{
    background: #1251d4;
    position: fixed;
    bottom: 15px;
    right: 15px;
    width: 60px;
    height: 60px;
    z-index: 9999;
    border-radius: 10rem;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 1.8rem;
}

.float-btn-support:hover{
    transition: 100ms ease-in;
    width: 70px;
    height: 70px;
    font-size: 2rem;
    color: #fff;
}

.sidebar {
    position: absolute;
    top: 80px;
    right: 0;
    width: 340px;
    height: calc(100% - 80px);
    background: #f5f7fb;
    z-index: 1000;
    padding: 40px 15px 15px 15px;
    border-left: 1px solid #e0e0e0;
}

.sidebar .sidebar-container{
    overflow-y: auto;
    height: calc(100% - 80px);
}
/* سرچ و فیلتر */
.sidebar-filters {
    margin-bottom: 15px;
}

.sidebar-filters input,
.sidebar-filters select {
    width: 100%;
    margin-bottom: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #d0d0d0;
    font-size: 13px;
    outline: none;
}

.sidebar-filters input:focus,
.sidebar-filters select:focus {
    border-color: #1251d4;
}

/* کارت محصول */
.billboard-card {
    position: relative;
    background: #fff;
    border-radius: 16px;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.25s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.billboard-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.billboard-card.active {
    border-color: #1251d4;
    background-color: #f0f7ff;
}

/* تصویر */
.card-image {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

/* لیبل (badge) جدید */
.card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff4757;
    color: #fff;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 10px;
    font-weight: 700;
}

/* محتوا */
.card-content {
    padding: 12px 12px 14px 12px;
    text-align: right;
}

.card-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 6px 0;
    color: #333;
}

.card-desc {
    font-size: 12px;
    color: #777;
    margin-bottom: 10px;
    line-height: 1.7;
}

/* فوتر کارت */
.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-price {
    font-size: 14px;
    font-weight: 800;
    color: #1251d4;
}

/* دکمه رزرو */
.reserve-btn {
    padding: 6px 14px;
    border-radius: 999px;
    border: none;
    background: #1251d4;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

.reserve-btn:hover:not(:disabled) {
    background: #0f3fb0;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(18,81,212,0.4);
}

.reserve-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: none;
}

/* دکمه رزرو غیرفعال (پر) */
.reserve-btn:disabled {
    background: #ccc;
    color: #666;
    cursor: not-allowed;
    box-shadow: none;
}


.custom_alert{
    position: absolute;
    top: 125px;
    right: 345px;
    width: calc(100% - 360px);
    z-index: 9999;
}

.object-fit-cover{
    object-fit: cover;
}




@media (max-width: 767px) {
    .sidebar {
        width: 100%;
        height: 50vh; /* ارتفاع سایدبار در موبایل نصف صفحه است */
        top: auto;
        bottom: 0;
        right: 0;
        border-radius: 20px 20px 0 0; /* گرد کردن لبه‌های بالا */
        box-shadow: 0 -5px 20px rgba(0,0,0,0.15);
        padding: 20px 10px;
        transition: height 0.3s ease;
    }

    /* اگر می‌خواهید با کشیدن دست سایدبار بازتر شود، می‌توانید کلاس .expanded اضافه کنید */
    .sidebar.expanded {
        height: 90vh;
    }

    /* اصلاح وضعیت هدر برای موبایل */
    .header-section {
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

}


@media (max-width: 767px) {
    .billboard-card {
        display: flex;
        flex-direction: row; /* تصویر در سمت راست و متن در چپ */
        height: 100px; /* ارتفاع ثابت برای کارت موبایل */
        margin-bottom: 10px;
    }

    .card-image {
        width: 100px;
        height: 100%;
    }

    .card-content {
        padding: 8px;
        flex: 1;
    }

    .card-title {
        font-size: 14px;
        margin-bottom: 4px;
    }

    .card-desc {
        display: none; /* در موبایل توضیحات طولانی را مخفی می‌کنیم تا جا کم نشود */
    }

    .card-price {
        font-size: 12px;
    }

    .reserve-btn {
        padding: 4px 10px;
        font-size: 11px;
    }
}

