﻿
body {
    font-family: 'MegaJa', -apple-system, 'BlinkMacSystemFont', 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
}
.hide-scrollbar::-webkit-scrollbar {display: none;}
.hide-scrollbar {-ms-overflow-style: none;scrollbar-width: none;}
body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

.container, .main-content {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}
 .modal-backdrop {transition: all 0.3s ease;}
 .support-chat-window.modal-active {
            position: fixed;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    z-index: 999999 !important;
    top: auto;
    left: auto;
    right: 20px;
    bottom: 80px;
    background-color: transparent;
        }
 .support-chat-window.modal-active > div {
    width: 100%;
    max-width: 320px;
    min-width: 320px;
    margin: 0 auto;
}
.support-chat-window.modal-active .hidden.md\:block {display: none !important;}
.support-chat-window.modal-active > div {
    animation: slideInRight 0.3s ease-out;
}
.support-chat-window:not(.modal-active) > div {
    transform: scale(0.95);
    opacity: 0;
}
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
@media (min-width: 1024px) {.mobile-menu-overlay,.mobile-menu-content {display: none !important;}}
.mobile-menu-overlay {position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0, 0, 0, 0.5);z-index:9998;backdrop-filter:blur(4px);opacity:0;visibility:hidden;transition:all 0.3s ease;}
.mobile-menu-content {
        position: fixed;
        top: 0;
        right: 0;
        width: 85%;
        max-width: 320px;
        height: 100%;
        background: white;
        z-index: 9999;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform 0.3s ease;
}
@media (max-width: 1024px) {
        body.menu-open {
            
            position: fixed !important;
            width: 100% !important;
            height: 100% !important;
        }
        .filter-collapse-body [class*="bg-white/40"] {
        width: 100%;
        max-width: 100%;
    }
        .fixed.bottom-0 {
            z-index: 99990 !important;
        }
#mobile-menu-toggle:checked ~ .mobile-menu-overlay {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
        }
        #mobile-menu-toggle:checked ~ .mobile-menu-content {
            transform: translateX(0);
        }
        .hamburger-span {
            z-index: 1000;
        }
        #mobile-menu-toggle:checked ~ header .hamburger-span .hamburger-line:nth-child(1) {
            transform: rotate(45deg) translate(6px, 6px);
        }
        #mobile-menu-toggle:checked ~ header .hamburger-span .hamburger-line:nth-child(2) {
            opacity: 0;
        }
        #mobile-menu-toggle:checked ~ header .hamburger-span .hamburger-line:nth-child(3) {
            transform: rotate(-45deg) translate(6px, -6px);
        }
        .custom-dropdown-menu {
                position: fixed !important;
                top: auto !important;
                bottom: auto !important;
                left: 50% !important;
                right: auto !important;
                transform: translateX(-50%) !important;
                width: calc(100% - 32px) !important;
                max-width: 400px !important;
                min-width: auto !important;
                max-height: 60% !important;
                border-radius: 1rem !important;
            }
        #guestModal {
                position: fixed !important;
                top: 50% !important;
                left: 50% !important;
                right: auto !important;
                bottom: auto !important;
                transform: translate(-50%, -50%) !important;
                width: calc(100% - 32px) !important;
                max-width: 320px !important;
                margin: 0 !important;
            }
    }
.dark-mode-toggle {
            position: relative;
            display: inline-block;
            width: 56px;
            height: 28px;
        }
        .dark-mode-toggle input {
            opacity: 0;
            width: 0;
            height: 0;
        }
        .dark-mode-slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #e2e8f0;
            transition: .4s;
            border-radius: 34px;
            display: flex;
            align-items: center;
            padding: 0 4px;
        }
        .dark-mode-slider:before {
            position: absolute;
            content: "";
            height: 20px;
            width: 20px;
            left: 4px;
            bottom: 4px;
            background-color: white;
            transition: .4s;
            border-radius: 50%;
            box-shadow: 0 2px 4px rgba(0,0,0,0.2);
        }
        input:checked + .dark-mode-slider {
            background-color: #137fec;
        }
        input:not(:checked) + .dark-mode-slider:before {
            transform: translateX(29px);
        }
        input[type="checkbox"] + .dark-mode-slider {
            transform: translateX(0);
        }
        .dark-mode-icons {
            display: flex;
            width: 100%;
            justify-content: space-between;
            align-items: center;
            z-index: 1;
        }
        .dark-mode-icons span {
            font-size: 18px;
            transition: opacity 0.05s;
        }
        .dark-mode-icons .light-icon {
            color:#f59e0b;
        }
        .dark-mode-icons .dark-icon {
            color:#94a3b8;
        }
        input:checked + .dark-mode-slider .dark-icon {
            color:#fbbf24;
        }
        input:checked + .dark-mode-slider .light-icon {
            color:#94a3b8;
        }
    #favorit-modal-toggle:checked ~ .search-modal {
        opacity:1;
        visibility:visible;
        pointer-events:auto;
    }
    #favorit-modal-toggle:checked ~ .search-modal .modal-content {
        transform:translateY(0) scale(1);
    }
    #favorit-modal-toggle:checked ~ .fixed label[for="favorit-modal-toggle"] {
        color:#137fec;
    }
    #login-modal-toggle:checked ~ .login-modal {
        opacity:1;
        visibility:visible;
        pointer-events:auto;
    }
    #login-modal-toggle:checked ~ .login-modal .modal-content {
        transform:scale(1);
    }
    #user-logged-in:checked ~ .fixed .user-panel-guest {
        display:none;
    }

   #user-logged-in:checked ~ .fixed .group:focus-within .user-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(60%) scale(1);
    pointer-events: auto;
}
 
body:has(#user-logged-in:checked) .group:hover .user-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(50%) scale(1);
    pointer-events: auto;
}

body:not(:has(#user-logged-in:checked)) .user-menu {
    opacity: 0;
    visibility:hidden;
    transform: scale(0.95);
    pointer-events: none;
}
.tourism-menu {
    opacity: 0;
    visibility: hidden;
    transform: scale(0.95);
    transition: all 0.2s ease;
    pointer-events: none;
}

/* فقط با هاور نمایش داده شود */
.group:hover .tourism-menu {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    pointer-events: auto;
}

/* برای RTL */
[dir="rtl"] .tourism-menu {
    left: 50%;
    right: auto;
    transform: translateX(-50%) scale(0.95);
}

[dir="rtl"] .group:hover .tourism-menu {
    transform: translateX(-50%) scale(1);
}
/* پیش‌فرض منو مخفی باشد */
.user-menu {
    opacity: 0;
    visibility: hidden;
    transform: scale(0.95);
    transition: all 0.2s ease;
    right: 50%;
}


    #user-logged-in:checked ~ .fixed .user-panel-logged-in {
        display:flex;
    }
    #chat-toggle:checked ~ .fixed label[for="chat-toggle"] {
        color:#137fec;
    }
    .cursor-grabbing {
        cursor:grabbing;
    }
    .toast-notification {
        animation: slideIn 0.3s ease-out;
    }
    @keyframes slideIn {
        from {
            transform: translateX(-50%) translateY(-100px);
            opacity: 0;
        }
        to {
            transform: translateX(-50%) translateY(0);
            opacity: 1;
        }
    }
    .category-span {
       cursor:pointer;
    }
    .category-span.active {
        border-color: #137fec;
        background-color: rgba(19, 127, 236, 0.1);
    }
    .snap-start{z-index:0 !important;}
    .accommodation-card {
        transition: all 0.3s ease;box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
    }
    .accommodation-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    }
    .mobile-menu-open .mobile-menu-overlay {
        opacity: 1;
        visibility: visible;
    }
    .mobile-menu-open .mobile-menu-content {
        transform: translateX(0);
    }
    .dark .mobile-menu-content {
        background: #101922;
    }
    .hamburger-line {
        transition: all 0.3s ease;
    }
    .mobile-menu-open .hamburger-span .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    .mobile-menu-open .hamburger-span .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-open .hamburger-span .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
.CalendarTable
{  
   	color: #000;
	text-align:center;
	width: 220px;
	height: 220px;
	margin: 0;
	direction: rtl;
    font-size:99%;
    padding:0;
}
.CalendarTablere
{  
   	color: #000;
	text-align:center;
	width: 220px;
	height: 220px;
	margin: 0;
	direction: rtl;
    font-size:99%;
    padding:0;
}
.WeekDayNamesre td
{
   border:none;font-size:59%
}
.tddd{
background: #ededff;
}
.tddd1{
background: #ffedff;
}


#CalendarTable td:hover
{
   
}
#today_td{background: #FF3333;color: #0000FF;}
.tdAc{
cursor:pointer;border-spacing:1px;margin:0px;margin-left:0px;margin-right:0px;
}

#calendar_header1,#calendar_header4,#calendar_header2,#calendar_header3
{
    font-size:89%;border:none;margin-top:0;font-weight:700;
}

.WeekDayNames td
{
   border:none;font-size:79%
}

.tdCl
{
   border: 1px solid #ccc;border-radius:6px;border-spacing:1px;margin:2px;margin-left:0px;margin-right: 0px;
}
tdCl:hover
{
}
.selStart {color:#00F;border:1px solid rgba(100,100,255,.4);margin-left: 0px !important;border-left:none;background-color:rgba(100,100,255,.8);background:linear-gradient(to bottom left ,transparent 49%,rgba(100,100,255,.5) 49%);border-radius: 25px;border-top-left-radius: 0;border-top-right-radius: 15px;border-bottom-right-radius: 15px;border-bottom-left-radius: 0;
}
.dark .selStart {color:#ffF;border:1px solid rgba(100,100,255,.4);margin-left: 0px !important;border-left:none;background-color:rgba(200,100,255,.8);background:linear-gradient(to bottom left ,transparent 49%,rgba(200,100,255,.5) 49%);border-radius: 25px;border-top-left-radius: 0;border-top-right-radius: 15px;border-bottom-right-radius: 15px;border-bottom-left-radius: 0;
}
.selEnd {color:#00F;border:1px solid rgba(100,100,255,.4);margin-right: 0px !important;border-right:none;
         background-color:rgba(100,100,255,.8); background: linear-gradient(to left bottom,rgba(100,100,255,.5) 49%,transparent 49%);
  border-radius: 15px;border-top-left-radius: 15px;border-top-right-radius: 0;border-bottom-right-radius: 0;border-bottom-left-radius: 15px;
}
.dark .selEnd {color:#ffF;border:1px solid rgba(100,100,255,.4);margin-right: 0px !important;border-right:none;
         background-color:rgba(200,100,255,.8); background: linear-gradient(to left bottom,rgba(200,100,255,.5) 49%,transparent 49%);
  border-radius: 15px;border-top-left-radius: 15px;border-top-right-radius: 0;border-bottom-right-radius: 0;border-bottom-left-radius: 15px;
}
.selMid{color:#00F;border-bottom:3px solid rgba(100,100,255,.0002);border-top:3px solid rgba(100,100,255,.02);background-color:rgba(100,100,255,.4);border-left:none;border-right:none;margin-left: 0px !important;margin-right: 0px !important;}
.dark .selMid{color:#FFF;border-bottom:3px solid rgba(200,100,255,.02);border-top:3px solid rgba(200,100,255,.02);background-color:rgba(200,100,255,.4);border-left:none;border-right:none;margin-left: 0px !important;margin-right: 0px !important;}
/* استایل‌های جدید برای تقویم */
    .calendar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.7);
        z-index: 199998;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        backdrop-filter: blur(4px);
    }
    
    .calendar-modal {
        position: fixed;
        top: 45%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0.9);
        background: white;
        border-radius: 20px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
        z-index: 199999;
        opacity: 0;
        visibility:hidden;
        transition: all 0.3s ease;
        width: 55%;
        min-width:250px;
        max-width: 450px;
        
    }
.previousMonth
{font-style: italic;
    color: #bbb;
cursor:auto;
}
    .dark .calendar-modal {
        background: #1a2634;
        border: 1px solid #2a3441;
    }
    
    .calendar-modal.active {
        opacity: 1;
        visibility: visible;
        transform: translate(-50%, -50%) scale(1);
    }
    
    .calendar-overlay.active {
        opacity: 1;
        visibility: visible;
    }
.calendar-modal.active ~ .popupEdi,body:has(.calendar-modal.active) .popupEdi {
    display: none !important;
}
    .calendar-header {
        padding:12px;
        border-bottom: 1px solid #f9fafb;
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: #f8fafc;
    }
    
    .dark .calendar-header {
        background: #111c26;
        border-color: #2a3441;
    }
    
    .calendar-body {
        padding: 2px;
        max-height:679vh;
        overflow-y: auto;
    }
    
    .calendar-grid {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        gap: 8px;
        text-align: center;
        height:440px;margin-top:-5px;z-index:10;
    }
    .CalendarDiv{
    margin-top:-15px;
}
    .calendar-day-header {
        font-size: 14px;
        font-weight: bold;
        color: #6b7280;
        padding: 8px 0;
    }
    
    .dark .calendar-day-header {
        color: #94a3b8;
    }
    
    .calendar-day {
        padding: 10px 0;
        border-radius: 10px;
        cursor: pointer;
        transition: all 0.2s ease;
        font-size: 12px;
        position: relative;
    }
    
    .calendar-day:hover {
        background: #e0f2fe;
    }
    
    .dark .calendar-day:hover {
        background: #2a3441;
    }
    
    .calendar-day.selected {
        background: #137fec;
        color: white;
        font-weight: bold;
    }
    
    .calendar-day.disabled {
        color: #9ca3af;
        cursor: not-allowed;
    }
    
    .dark .calendar-day.disabled {
        color: #4b5563;
    }
    
    .calendar-day.today {
        border: 2px solid #137fec;
    }
    
    .calendar-day.in-range {
        background: rgba(19, 127, 236, 0.1);
    }
    
    .calendar-controls {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 20px;
    }
    
    .calendar-month-year {
        font-size: 16px;
        font-weight:bold;
        color: #1f2937;padding-left:9px;
    }
    
    .dark .calendar-month-year {
        color: #f3f4f6;
    }
    
    .calendar-nav-btn {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        background: #f1f5f9;
        transition: all 0.2s ease;
    }
    
    .calendar-nav-btn:hover {
        background:#e2e8f0;
    }
    
    .dark .calendar-nav-btn {
        background:#2a3441;
    }
    
    .dark .calendar-nav-btn:hover {
        background:#3a4451;
    }
    
    .calendar-actions {
        padding:8px;
        border-top: 1px solid #f9fafb;
        display: flex;
        gap:8px;
        background: #f8fafc;
    }
    
    .dark .calendar-actions {
        background: #111c26;
        border-color: #2a3441;
    }
    
    .calendar-btn {
        flex: 1;
        padding:10px;
        border-radius: 12px;
        font-weight: bold;
        cursor: pointer;
        text-align: center;
        transition: all 0.2s ease;
    }
    
    .calendar-btn-primary {
        background: #137fec;
        color: white;
    }
    
    .calendar-btn-primary:hover {
        background: #0d6fd8;
    }
    
    .calendar-btn-secondary {
        background: #f1f5f9;
        color: #4b5563;
    }
    
    .dark .calendar-btn-secondary {
        background: #2a3441;
        color: #d1d5db;
    }
    
    .calendar-btn-secondary:hover {
        background: #e2e8f0;
    }
    
    .dark .calendar-btn-secondary:hover {
        background: #3a4451;
    }
    
    .date-range-display {
        margin-top: 20px;
        padding: 16px;
        background: #f8fafc;
        border-radius: 12px;
        text-align: center;
    }
    
    .dark .date-range-display {
        background: #111c26;
    }
    
    .date-range-text {
        color: #6b7280;
        font-size: 14px;
    }
    
    .dark .date-range-text {
        color: #94a3b8;
    }
    
    .date-range-value {
        color: #1f2937;
        font-weight: bold;
        margin-top: 4px;
        font-size: 16px;
    }
    
    .dark .date-range-value {
        color: #f3f4f6;
    }
    .unselectable {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
    @keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.animate-shimmer {
    animation: shimmer 1.5s infinite;
}




.fake-button {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            user-select: none;
            transition: all 0.2s ease;
        }
        
        .fake-button:active {
            transform: scale(0.95);
        }
        
        /* استایل خاص برای دکمه تایید */
        .confirm-button {
            background-color: #3b82f6;
            color: white;
            padding: 8px 16px;
            border-radius: 12px;
            font-weight: 600;
            text-align: center;
            width: 100%;
        }
        
        .confirm-button:hover {
            background-color: #2563eb;
        }
        
        /* استایل برای دکمه‌های عددگذار */
        .spinner-button {
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background-color: #e5e7eb;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .dark .spinner-button {
            background-color: #334155;
            color: white;
        }
        
        .spinner-button:hover {
            background-color: #e2e8f0;
        }
        
        .dark .spinner-button:hover {
            background-color: #475569;
        }
        
        .spinner-button:active {
            transform: scale(0.9);
        }
        
        /* استایل برای دکمه اعمال و پاک کردن فیلترها */
        .filter-button {
            flex: 1;
            padding: 8px 16px;
            border-radius: 12px;
            font-weight: 600;
            text-align: center;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .filter-button-primary {
            background-color: #3b82f6;
            color: white;
        }
        
        .filter-button-primary:hover {
            background-color: #2563eb;
        }
        
        .filter-button-secondary {
            background-color: #f9fafb;
            color: #374151;
        }
        
        .dark .filter-button-secondary {
            background-color: #374151;
            color: #f9fafb;
        }
        
        .filter-button-secondary:hover {
            background-color: #d1d5db;
        }
        
        .dark .filter-button-secondary:hover {
            background-color: #4b5563;
        }
        
        .filter-button-primary:active,
        .filter-button-secondary:active {
            transform: scale(0.98);
        }
        
        /* تنظیمات دیگر */
        .custom-dropdown-menu {
            position: absolute;
            top: calc(100% + 8px);
            right: 0;
            left: auto;
            min-width: 280px;
            background: white;
            border-radius: 1rem;
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
            z-index: 99999 !important;
            display: none;
            max-height: 400px;
            overflow-y: auto;
        }.dark .custom-dropdown-menu {
            background: #1a2634;
            border: 1px solid #334155;
        }

        .custom-dropdown-menu.show {
            display: block;
        }
        
        .group {
            position: relative !important;
            z-index: 1 !important;
        }
        
        .filter-modal {
            position: fixed;
            top: 0;inset: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            z-index: 999999999 !important;
            display: none;
            align-items: center;
            justify-content: center;
        }

        .filter-modal.show {
            display: flex;
        }
        .filter-modal-inner {
    padding: 3rem;overflow-y:auto;
    max-height:75vh;
}
        .filter-modal-content {
            background: white;
            border-radius: 1.5rem;
            max-width: 500px;
           width: calc(90% - 6px);
            max-height: 85vh;
            position: relative;
            z-index: 100000 !important;
            padding: 1.5rem;
        }
        .filter-modal-content > div {
    padding:10px;
}
      .dark.filter-modal-inner {
            background: #1a2634;
        }
        .dark .filter-modal-content {
            background: #1a2634;
        }
        
        #guestModal {
            z-index: 99999 !important;
        }
        
.number-spinner {
            display: flex;font-size: 12px;
            align-items: center;
            gap:8px;
            direction: ltr;
            margin-left:5px;
            margin-right:5px;
            padding-left:3px;
            padding-right:3px;
            background-color:#fff;height:30px;
        }

.number-spinner span:not(.spinner-button) {
            min-width: 10px;
            text-align: center;
            font-size: 12px;
            font-weight: 500;
}
.filtercl {
 background-color:#fff;padding-right:1px;border:1px solid #eef8fa;align-self:flex-start;
}
.filtercl span{
     font-size:13px;
}
.filtercl:has(.remove-filter) {
  border-color: #3b82f6 !important;background-color:#eef8fa;
}
.filtercl .material-symbols-outlined {
    font-size:17px;padding-left:1px;
}
.filtercl:not(:has(.remove-filter)){
    border-color: #f6f7f8 !important;
}
.filtercl:has(.remove-filter) .material-symbols-outlined {
    
}
.filtercl:has(.remove-filter) span:not(.remove-filter) {

}
.number-spinner.active {
 border-color: #3b82f6 !important;background-color:#eef8fa;
}
.number-spinner:hover {
  color:#3b82f6;
}
.number-spinner.active .spinner-button {
  color: #2563eb;
}
.timeselect{background-color:#fff;
    padding-left:5px;font-size:13px;
            padding-right:5px;
            margin-left:3px;
            margin-right:3px;color:#3b82f6;
            border:1px solid #eef8fa;height:30px;
}
.timeselect.active {
    border:1px solid #3b82f6 !important;background-color:#eef8fa;
}
.timeselect:hover {
  
}
.quicksel{background-color:#fff;
    padding-left:3px;
            padding-right:8px;
            margin-left:3px;
            margin-right:3px;
            border:1px solid #eef8fa;
}
.quicksel:hover {
    
}
.quicksel.active {
 border-color: #3b82f6 !important;background-color:#eef8fa;
}
.discosel{background-color:#fff;
    padding-left:3px;
            padding-right:8px;
            margin-left:3px;
            margin-right:3px;border:1px solid #eef8fa;
}
.discosel:hover {
    color:#3b82f6;
}
.discosel.active {
 border-color: #3b82f6 !important;background-color:#eef8fa;
}
.priceelect{background-color:#fff;
    padding-left:3px;
            padding-right:8px;
            margin-left:3px;
            margin-right:3px;
            min-width:250px;
            border:1px solid #eef8fa;
}
.priceelect.active {
 border-color: #3b82f6 !important;background-color:#eef8fa;
}
        .search-suggestion-item {
            padding: 12px 16px;
            cursor: pointer;
            transition: background-color 0.2s;
            border-bottom: 1px solid #e2e8f0;
        }

        .dark .search-suggestion-item {
            border-bottom-color: #334155;
        }

        .search-suggestion-item:hover {
            background-color: #f1f5f9;
        }

        .dark .search-suggestion-item:hover {
            background-color: #233040;
        }
        
       
        
        .hide-scrollbar::-webkit-scrollbar {
            display: none;
        }
        
        .hide-scrollbar {
            -ms-overflow-style: none;
            scrollbar-width: none;
        }
        
        .w-full.max-w-\[960px\] {
            position: relative;
            z-index: 100 !important;
        }
        
        .relative.z-20 {
            z-index: 10 !important;
        }
        
        .group:first-child {
            z-index: 1000 !important;
        }
        .carousel-prev {
    position: relative;
    top: auto;
    bottom: auto;
    margin-bottom: 0;
    transform: translateY(0);
}

/* اطمینان از اینکه هر دو دکمه در یک خط و هم سطح باشند */
.carousel-prev,
.carousel-next {
    position: relative;
    display: inline-flex;
    vertical-align: middle;
}
.flex.justify-end.gap-2 {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 20px;
    position: relative;
    z-index: 10;
}
.carousel-prev {
    float: none;
    clear: none;
    margin-right: 0;
    margin-left: 0;
}
.modal-backdrop,
.modal-overlay,
#login-modal,.login-modal {
    z-index: 99999 !important;
    background-color: rgba(200, 200, 200, 0.3) !important;
    backdrop-filter: blur(5px);
}

#notificationContainer {
    z-index: 99999 !important;
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    left: auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    pointer-events: none !important;
}

#notificationContainer > div {
    pointer-events: auto !important;
}

.notification-item {
    z-index:100000 !important;
    position: relative !important;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100px);
    }
}

@keyframes shrink {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

.animate-slideInRight {
    animation: slideInRight 0.3s ease-out forwards;
}

.animate-slideOutRight {
    animation: slideOutRight 0.3s ease-out forwards;
}

.notification-item {
    position: relative;
    overflow: hidden;
}
.login-submit-btn.disabled {
   
    opacity: 0.5;
    cursor: not-allowed;
}

.login-submit-btn {
    cursor: pointer;
    transition: all 0.3s;
}

.filter-collapse {
    transition: all 0.3s ease;
}

.filter-collapse-body {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.filter-collapse-body[style*="display: block"] {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

.filter-collapse-header {
    user-select: none;
    transition: background-color 0.2s;
}

.filter-collapse-header:active {
    transform: scale(0.99);
}

.collapse-icon {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}







 .expanded-search {
            transition: all 0.3s ease-in-out;
        }
 .search-options {
            max-height: 0;
            opacity: 0;
            overflow: hidden;
            transition: all 0.3s ease-in-out;
            padding: 0 1rem;
        }
        
        .search-options.show {
            max-height: 500px;
            opacity: 1;
            padding: 1rem;
            border-top: 1px solid #f9fafb;
        }
        
        /* حالت تاریک */
.dark .search-options.show {
            border-top-color: #334155;
        }
#searchSuggestions {
    z-index: 999999999 !important;
}
#searchWrapper {isolation: isolate;
    position: relative;
    z-index: 999999999;
}
.custom-dropdown-menuSearch {
    position: absolute;
    top: calc(100% - 2px);
    right: 0;
    left: 0;
    width: 100%;
    min-width: 250px;
    background: white;
    border: none;
    border-radius: 0 0 0.75rem 0.75rem;
    border-top: none;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    z-index: 999999999 !important;
    display: none;
    max-height: 300px;
    overflow-y: auto;
}
.custom-dropdown-menuSearch::-webkit-scrollbar {
    width: 6px;
}

.custom-dropdown-menuSearch::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.custom-dropdown-menuSearch::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.custom-dropdown-menuSearch::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
.dark .custom-dropdown-menuSearch::-webkit-scrollbar-track {
    background: #0f172a;
}

.dark .custom-dropdown-menuSearch::-webkit-scrollbar-thumb {
    background: #475569;
}

.dark .custom-dropdown-menuSearch::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}
.dark .custom-dropdown-menuSearch {
            background: #1e293b;
            border-color: #334155;
        }
.custom-dropdown-menuSearch.show {
            display: block;
        }
.custom-dropdown-menuSearch * {
    position: relative;
    z-index: 9999999;
}
.chat-messages::-webkit-scrollbar {
    width: 6px;padding-left:13px;
}
.chat-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
.dark .chat-messages::-webkit-scrollbar-track {
    background: #0f172a;
}

.dark .chat-messages::-webkit-scrollbar-thumb {
    background: #475569;
}

.dark .chat-messages::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}
        .dark .chat-messages {
            background: #1e293b;
            border-color: #334155;
        }






.filter-modal-inner::-webkit-scrollbar {
    width: 6px;padding-left:13px;
}

.filter-modal-inner::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.filter-modal-inner::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.filter-modal-inner::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
.dark .filter-modal-inner::-webkit-scrollbar-track {
    background: #0f172a;
}

.dark .filter-modal-inner::-webkit-scrollbar-thumb {
    background: #475569;
}

.dark .filter-modal-inner::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}
        .dark .filter-modal-inner {
            background: #1e293b;
            border-color: #334155;
        }
        
        .filter-modal-inner.show {
            display: block;
        }
       
        .filter-modal-inner * {
    position: relative;
    z-index: 9999999;
}




#categories-container {
    position: relative;
    z-index: 10; /* مقدار کمتر */
}

.container {
    overflow: visible !important; z-index:9;
}
.custom-dropdown-wrapper {
    position: relative;
}
.dropdown-item {
            padding: 10px 15px;
            cursor: pointer;
            transition: background-color 0.2s;
            border-bottom: 1px solid #f3f4f6;
        }
        .dark .dropdown-item {
            border-bottom-color: #334155;
        }
        
        .dropdown-item:hover {
            background-color: #f3f4f6;
        }
        
        .dark .dropdown-item:hover {
            background-color: #334155;
        }
        
        /* استایل برای انتخابگر تاریخ و تعداد نفرات */
        .date-picker-popup, .guest-picker-popup {
            position: absolute;
            top: calc(100% + 5px);
            right: 0;
            background: white;
            border: 1px solid #eef8fa;
            border-radius: 0.75rem;
            box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
            z-index: 9999;
            display: none;
            min-width: 280px;
        }
        
        .dark .date-picker-popup, .dark .guest-picker-popup {
            background: #1e293b;
            border-color: #334155;
        }
        
        .date-picker-popup.show, .guest-picker-popup.show {
            display: block;
        }
        
        /* استایل برای انتخابگر تعداد نفرات */
        .guest-counter {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 12px 15px;
            border-bottom: 1px solid #f3f4f6;
        }
        
        .dark .guest-counter {
            border-bottom-color: #334155;
        }
        
        .guest-counter:last-child {
            border-bottom: none;
        }
        
        .counter-btn {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: #f3f4f6;
            border: none;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            transition: all 0.2s;
        }
        
        .dark .counter-btn {
            background: #334155;
            color: white;
        }
        
        .counter-btn:hover {
            background: #eef8fa;
        }
        
        .dark .counter-btn:hover {
            background: #475569;
        }
        
        /* مخفی کردن پیش‌فرض */
        .hidden-option {
            display: none;
        }
        
        /* انیمیشن برای باز شدن */
        @keyframes slideDown {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .search-options.show {
            animation: slideDown 0.3s ease-out;
        }
        #expandedSearch {
        margin-top:0px !important;
        position: relative;
        z-index:0 !important;
    }
#collapsedSearch .flex.items-center {
        position: relative;
        z-index: 999999999;
    }
#collapsedSearch {
        overflow: visible !important;
    }
     .search-wrapper {
            transition: all 0.3s ease-in-out;
            padding:0;margin:0;
            min-width: 170px;
        }
        
        .search-wrapper-focused {
            width: 100%;
            max-width: 960px;
            min-width: 300px;
        }
        
        .search-input {height:28px;padding:0;margin:0;top:0;
            transition: all 0.3s ease-in-out;
        }.expanded-section {
            transition: all 0.3s ease-in-out;
            max-height: 0;
            opacity: 0;
            overflow: hidden;
            padding: 0;
        }
        
        .expanded-section-show {
            max-height: 500px;
            opacity: 1;
            margin-top: 2rem;
        }

        input[type="range"] {
            -webkit-appearance: none;
            appearance: none;
            width: 100%;
            position: absolute;
            background: transparent;
            pointer-events: none;
            z-index: 2;
        }
        input[type="range"]::-webkit-slider-runnable-track {
            height: 3px;
        }
        input[type="range"]::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 20px;
            height: 20px;
            background: #23a9f7;
            border: 3px solid #83c9ff;
            border-radius:40%;
            cursor: pointer;
            pointer-events: auto;
            position: relative;
            z-index: 3;
            transform: translateY(-30%);
        }
        input[type="range"]::-moz-range-thumb {
            width: 20px;
            height: 20px;
            background:  #23a9f7;
            border: 3px solid #83c9ff;
            border-radius: 40%;
            cursor: pointer;
            pointer-events: auto;
            z-index: 3;
            transform: translateY(-30%);
        }
        .slider-container {
            position: relative;
            height: 9px;
        }

@keyframes fadeInOut {
    0% { opacity: 0; transform: translate(-50%, 20px); }
    15% { opacity: 1; transform: translate(-50%, 0); }
    85% { opacity: 1; transform: translate(-50%, 0); }
    100% { opacity: 0; transform: translate(-50%, -20px); }
}

.animate-fade-in-out {
    animation: fadeInOut 2s ease forwards;
}

/* اسکرول بار زیبا */
#favocontainer::-webkit-scrollbar {
    width: 4px;
}

#favocontainer::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

#favocontainer::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

#favocontainer::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
.favorite-btn {
 color: rgba(255,255,255,.7) !important; text-shadow: 0 1px 10px rgba(250,50,50,0.6);
  position:absolute;
  top:0; right:0;z-index:9999;
}
.priceText{
}
@media (max-width: 767px) {
    .priceText{
}
}
.favorite-btn-select {
    color: rgba(255,30,30,.7)  !important;
}
/* یا برای حالت hover */
.favorite-btn:hover {text-shadow: 0 1px 10px rgba(255,255,255,0.8);
    
}
/* لاین کلَمپ برای عنوان */
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.favorite-item {
    overflow: visible !important; /* برای دکمه‌های absolute */
    position: relative;
}

/* اگر از روش absolute استفاده می‌کنید، مطمئن شوید پدر دارای overflow: visible است */
.favocontainer {
    overflow-y: auto;
    overflow-x: visible;
}


#iran-tour:checked ~ .iran-tour-modal,
#iran-tour:checked + .iran-tour-modal {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

#iran-tour:checked ~ .iran-tour-modal .modal-content,
#iran-tour:checked + .iran-tour-modal .modal-content {
    transform: scale(1) translateY(0);
}
.province-header .province-icon {
    transition: transform 0.3s ease;
}

.province-header.expanded .province-icon {
    transform: rotate(180deg);
}

.province-cities {
    transition: all 0.3s ease;
}

/* اسکرول بار */
.iran-tour-modal .overflow-y-auto::-webkit-scrollbar {
    width: 4px;
}

.iran-tour-modal .overflow-y-auto::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.iran-tour-modal .overflow-y-auto::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.dark .province-header {
    background-color: #1f2937 !important;
    border-color: #374151 !important;
}

.dark .province-header h4 {
    color: #f3f4f6 !important;
}

.dark .province-header .text-slate-400 {
    color: #6b7280 !important;
}

.dark.custom-tooltip {  
    position: fixed;
    background-color:rgba(219, 234, 254, 0.6);
    color: #1d4ed8;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    z-index: 999992;
    white-space: nowrap;
    transform: translateX(-50%);
    pointer-events: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
    transition: opacity 0.2s;
}
.dark.custom-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: rgba(219, 234, 254, 0.6) transparent transparent transparent;
}
 .light.custom-tooltip {
    position: fixed;
    background-color:rgba(50, 50, 50, 0.9);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-family: Arial, sans-serif;
    z-index: 999992;
    white-space: nowrap;
    transform: translateX(-50%);
    pointer-events: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: opacity 0.2s;
}
.light.custom-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: rgba(50, 50, 50, 0.9) transparent transparent transparent;
}

