@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-pro-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 5px;
    padding: 4px 8px;
    color: #713f12;
    background: linear-gradient(135deg, #fde68a, #f59e0b);
    border: 1px solid rgba(146, 64, 14, .2);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
}

.popup-pro-badge i {
    color: #fff7ed;
    text-shadow: 0 1px 2px rgba(120, 53, 15, .45);
}

.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;
}

.pro-marker-icon {
    filter: sepia(1) saturate(8) hue-rotate(355deg) brightness(1.08);
}

.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;
}

.pro-seller-card {
    border-color: rgba(234, 179, 8, .55);
    box-shadow: 0 5px 18px rgba(234, 179, 8, .12);
}

.pro-seller-card:hover {
    border-color: #eab308;
    box-shadow: 0 10px 24px rgba(234, 179, 8, .2);
}

.pro-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    color: #713f12;
    background: linear-gradient(135deg, #fde68a, #f59e0b);
    border: 1px solid rgba(146, 64, 14, .2);
    border-radius: 999px;
    box-shadow: 0 4px 10px rgba(180, 83, 9, .2);
    font-size: 10px;
    font-weight: 800;
}

.pro-badge i {
    color: #fff7ed;
    text-shadow: 0 1px 2px rgba(120, 53, 15, .45);
}

/* محتوا */
.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;
}

.billboard-details-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}


.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;
    }
}

/* Shared mobile layout for public pages, cart, checkout and dashboards. */
@media (max-width: 767.98px) {
    body {
        overflow-x: hidden;
    }

    .header-section {
        min-height: 64px;
    }

    .header-section .navbar {
        min-height: 64px;
        padding: 8px 10px;
        gap: 8px;
    }

    .header-section .navbar-brand img {
        height: 48px !important;
        width: auto;
    }

    .header-section .menu-wrap,
    .header-section .header-btn {
        gap: 6px;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .header-section .user-name {
        display: none;
    }

    .header-section .header-btn > form .btn,
    .header-section .header-btn > a.btn {
        padding: 6px 10px;
        font-size: .75rem;
    }

    .header-section .header-btn > a:not(.btn) img {
        margin-left: 0 !important;
    }

    .container,
    .container-fluid {
        max-width: 100%;
        padding-left: 10px;
        padding-right: 10px;
    }

    .offcanvas.offcanvas-end {
        width: min(92vw, 390px);
    }

    .offcanvas-body {
        overflow-x: hidden;
    }

    .cart-sidebar-item,
    .cart-item,
    .checkout-card,
    .wallet-card {
        max-width: 100%;
    }

    .row > [class*="col-"] {
        min-width: 0;
    }

    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table-responsive table {
        min-width: 620px;
    }

    .form-control,
    .form-select,
    textarea {
        max-width: 100%;
        font-size: .85rem;
    }

    .btn {
        white-space: normal;
    }

    .map-container,
    #map,
    .mapp-container {
        max-width: 100%;
    }

    .sidebar-filters {
        padding: 0 4px;
    }

    .popup-image {
        height: 110px;
    }
}

@media (max-width: 420px) {
    .header-section .navbar-brand img {
        height: 42px !important;
    }

    .header-section .header-btn > form .btn,
    .header-section .header-btn > a.btn {
        padding: 5px 8px;
        font-size: .7rem;
    }

    .offcanvas.offcanvas-end {
        width: 96vw;
    }
}

/* Reservation modal calendar */
#reservationModal #reservationCalendar {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 12px 0 18px;
    padding: 12px;
    overflow-x: auto;
    background: linear-gradient(145deg, #f8fbff, #eef5ff);
    border: 1px solid #dbeafe;
    border-radius: 18px;
    -webkit-overflow-scrolling: touch;
}

#reservationModal #reservationCalendar .flatpickr-calendar.inline,
#reservationModal #reservationCalendar .reservation-flatpickr {
    width: min(100%, 390px) !important;
    min-width: 0 !important;
    max-width: 390px !important;
    height: auto;
    padding: 10px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e5edf8;
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(37, 99, 235, .1);
}

#reservationModal #reservationCalendar .flatpickr-months {
    align-items: center;
    margin-bottom: 8px;
    padding: 3px 4px 8px;
    border-bottom: 1px solid #edf2f7;
}

#reservationModal #reservationCalendar .flatpickr-month {
    height: 38px !important;
    color: #172554;
    fill: #172554;
}

#reservationModal #reservationCalendar .flatpickr-current-month {
    position: static;
    width: 100%;
    padding: 0;
    color: #172554;
    font-size: .95rem;
    font-weight: 800;
    text-align: center;
}

#reservationModal #reservationCalendar .flatpickr-current-month .numInputWrapper,
#reservationModal #reservationCalendar .flatpickr-current-month input.cur-year {
    font-weight: 800;
}

#reservationModal #reservationCalendar .flatpickr-prev-month,
#reservationModal #reservationCalendar .flatpickr-next-month {
    position: static;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    transition: background .2s ease;
}

#reservationModal #reservationCalendar .flatpickr-prev-month:hover,
#reservationModal #reservationCalendar .flatpickr-next-month:hover {
    background: #eff6ff;
}

#reservationModal #reservationCalendar .flatpickr-prev-month svg,
#reservationModal #reservationCalendar .flatpickr-next-month svg {
    width: 13px;
    height: 13px;
    fill: #2563eb;
}

#reservationModal #reservationCalendar .flatpickr-innerContainer,
#reservationModal #reservationCalendar .flatpickr-rContainer,
#reservationModal #reservationCalendar .flatpickr-days,
#reservationModal #reservationCalendar .dayContainer,
#reservationModal #reservationCalendar .flatpickr-weekdays,
#reservationModal #reservationCalendar .flatpickr-weekdayContainer {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
}

#reservationModal #reservationCalendar .flatpickr-weekdays {
    margin-bottom: 5px;
}

#reservationModal #reservationCalendar .flatpickr-weekdayContainer {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

#reservationModal #reservationCalendar span.flatpickr-weekday {
    height: 30px;
    color: #64748b;
    font-size: .68rem;
    font-weight: 800;
    line-height: 30px;
}

#reservationModal #reservationCalendar .dayContainer {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
    justify-content: stretch;
    padding: 2px 0;
}

#reservationModal #reservationCalendar .flatpickr-day {
    width: auto !important;
    max-width: none !important;
    height: 39px;
    margin: 0;
    color: #334155;
    border: 1px solid transparent;
    border-radius: 11px;
    font-size: .78rem;
    font-weight: 700;
    line-height: 37px;
    transition: all .18s ease;
}

#reservationModal #reservationCalendar .flatpickr-day:hover,
#reservationModal #reservationCalendar .flatpickr-day:focus {
    color: #1d4ed8;
    background: #eff6ff;
    border-color: #bfdbfe;
}

#reservationModal #reservationCalendar .flatpickr-day.today {
    color: #2563eb;
    border-color: #93c5fd;
}

#reservationModal #reservationCalendar .flatpickr-day.selected,
#reservationModal #reservationCalendar .flatpickr-day.startRange,
#reservationModal #reservationCalendar .flatpickr-day.endRange {
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    border-color: transparent;
    box-shadow: 0 5px 12px rgba(37, 99, 235, .25);
}

#reservationModal #reservationCalendar .flatpickr-day.inRange {
    color: #1d4ed8;
    background: #dbeafe;
    border-color: transparent;
    box-shadow: none;
}

#reservationModal #reservationCalendar .flatpickr-day.prevMonthDay,
#reservationModal #reservationCalendar .flatpickr-day.nextMonthDay {
    color: transparent;
    visibility: hidden;
    pointer-events: none;
}

#reservationModal #reservationCalendar .flatpickr-day.flatpickr-disabled {
    color: #cbd5e1;
    background: #f8fafc;
    text-decoration: line-through;
    opacity: .75;
}

#reservationModal #reservationDatesPreview {
    margin-top: 8px;
    padding: 10px 12px;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 11px;
    line-height: 1.9;
}

#reservationModal #reservedRanges {
    max-height: 120px;
    overflow-y: auto;
    padding: 8px 10px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 12px;
}

#reservationModal #reservedRanges:empty {
    display: none;
}

#reservationModal #reservedRanges .list-group-item {
    color: #9a3412 !important;
    background: transparent;
    border-color: #fed7aa;
}

@media (max-width: 575.98px) {
    #reservationModal #reservationCalendar {
        margin-top: 8px;
        padding: 7px;
        border-radius: 14px;
    }

    #reservationModal #reservationCalendar .flatpickr-calendar.inline,
    #reservationModal #reservationCalendar .reservation-flatpickr {
        width: 100% !important;
        padding: 7px;
        border-radius: 13px;
    }

    #reservationModal #reservationCalendar .dayContainer {
        gap: 2px;
    }

    #reservationModal #reservationCalendar .flatpickr-day {
        height: 35px;
        border-radius: 9px;
        font-size: .72rem;
        line-height: 33px;
    }

    #reservationModal #reservationCalendar span.flatpickr-weekday {
        font-size: .61rem;
    }
}
