/* ==========================================================================
   Font Definition - IRANYekan
   ========================================================================== */
@font-face {
    font-family: "IRANYekan";
    src: url("../fonts/IRANYekanXVFaNumVF.woff2") format("woff2"),
         url("../fonts/IRANYekanXVFaNumVF.woff") format("woff");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "IRANYekanXV";
    src: url("../fonts/IRANYekanXVFaNumVF.woff2") format("woff2"),
         url("../fonts/IRANYekanXVFaNumVF.woff") format("woff");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --tsw-primary: #2563eb;
    --tsw-primary-hover: #1d4ed8;
    --tsw-primary-light: #eff6ff;
    --tsw-primary-glow: rgba(37, 99, 235, 0.2);
    
    --tsw-text-dark: #0f172a;
    --tsw-text-muted: #64748b;
    --tsw-text-light: #94a3b8;
    
    --tsw-bg-panel: #ffffff;
    --tsw-bg-tab: #f8fafc;
    --tsw-bg-tab-hover: #f1f5f9;
    --tsw-bg-input: #ffffff;
    --tsw-bg-input-hover: #f8fafc;
    
    --tsw-border: #e2e8f0;
    --tsw-border-focus: #2563eb;
    
    --tsw-radius-sm: 8px;
    --tsw-radius-md: 14px;
    --tsw-radius-lg: 22px;
    --tsw-radius-pill: 9999px;
    
    --tsw-shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.04);
    --tsw-shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.06), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --tsw-shadow-panel: 0 20px 40px -15px rgba(15, 23, 42, 0.08), 0 0 1px rgba(15, 23, 42, 0.12);
    --tsw-shadow-btn: 0 10px 20px -5px rgba(37, 99, 235, 0.35);

    --tsw-font: "IRANYekan", "IRANYekanXV", "IRANYekanX", var(--mk-font-family, "Vazirmatn", "IRANSans", Tahoma, sans-serif);
    --tsw-transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Container & Reset
   ========================================================================== */

.travel-search {
    position: relative;
    direction: rtl;
    text-align: right;
    font-family: var(--tsw-font) !important;
    box-sizing: border-box;
    width: 100%;
    margin: 0 auto;
    color: var(--tsw-text-dark);
}

.travel-search *,
.travel-search *::before,
.travel-search *::after,
.travel-search input,
.travel-search select,
.travel-search button,
.travel-search label,
.travel-search span {
    box-sizing: border-box;
    font-family: var(--tsw-font) !important;
}

/* ==========================================================================
   Unified Card Wrapper & Tabs Container (یکپارچگی کل باکس و تب‌ها)
   ========================================================================== */

.travel-search .tsw-card-wrapper {
    background: var(--tsw-bg-panel);
    border: 1px solid var(--tsw-border);
    border-radius: var(--tsw-radius-lg);
    box-shadow: var(--tsw-shadow-panel);
    position: relative;
    z-index: 1;
    transition: var(--tsw-transition);
}

/* Unified Tabs Navigation Container */
.travel-search .search-tabs-container {
    background: #f8fafc;
    border-bottom: 1px solid var(--tsw-border);
    border-radius: var(--tsw-radius-lg) var(--tsw-radius-lg) 0 0;
    padding: 8px 16px 0 16px;
    position: relative;
    z-index: 2;
}

.travel-search .search-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 0;
    overflow-x: auto;
    padding-bottom: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: relative;
    z-index: 2;
}

.travel-search .search-tabs::-webkit-scrollbar {
    display: none;
}

.travel-search .search-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    background-color: transparent;
    color: var(--tsw-text-muted);
    border: 1px solid transparent;
    border-bottom: none;
    border-radius: var(--tsw-radius-md) var(--tsw-radius-md) 0 0;
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--tsw-transition);
    white-space: nowrap;
    position: relative;
    user-select: none;
    outline: none;
}

.travel-search .search-tab svg,
.travel-search .search-tab i,
.travel-search .search-tab img,
.travel-search .search-tab .tsw-tab-icon {
    width: 18px;
    height: 18px;
    font-size: 18px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    stroke-width: 2.2px;
    transition: transform 0.2s ease;
}

.travel-search .search-tab i[class*="fa-"],
.travel-search .search-tab i[class*="ri-"],
.travel-search .search-tab i[class*="mk-"] {
    width: auto;
    height: auto;
    font-size: 18px;
}

.travel-search .search-tab:hover {
    color: var(--tsw-primary);
    background-color: rgba(255, 255, 255, 0.6);
}

.travel-search .search-tab:hover svg,
.travel-search .search-tab:hover i {
    transform: translateY(-2px);
}

.travel-search .search-tab.active {
    background-color: var(--tsw-bg-panel);
    color: var(--tsw-primary);
    border-color: var(--tsw-border);
    border-bottom-color: var(--tsw-bg-panel);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.03);
    z-index: 3;
}

.travel-search .search-tab.active::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--tsw-bg-panel);
    z-index: 4;
}

/* ==========================================================================
   Search Panel Box (Inside Unified Card)
   ========================================================================== */

.travel-search .search-panel {
    background: transparent;
    border: none;
    border-radius: 0 0 var(--tsw-radius-lg) var(--tsw-radius-lg);
    padding: 24px 26px;
    position: relative;
    z-index: 1;
}

/* Fallback when not inside .tsw-card-wrapper */
.travel-search:not(:has(.tsw-card-wrapper)) .search-panel {
    background: var(--tsw-bg-panel);
    border: 1px solid var(--tsw-border);
    border-radius: var(--tsw-radius-lg);
    border-top-right-radius: 0;
    box-shadow: var(--tsw-shadow-panel);
}

.travel-search .search-content {
    display: none;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.travel-search .search-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.travel-search .tsw-elementor-template-wrapper {
    width: 100%;
    position: relative;
}

/* Segmented Tabs Layout Mode (نوار کپسولی پیوسته) */
.travel-search.tsw-tabs-segmented .search-tabs-container,
.tsw-tabs-segmented .travel-search .search-tabs-container {
    background: transparent !important;
    border-bottom: none !important;
    padding: 16px 20px 0 20px !important;
}

.travel-search.tsw-tabs-segmented .search-tabs,
.tsw-tabs-segmented .travel-search .search-tabs {
    background: #e2e8f0;
    padding: 5px;
    border-radius: var(--tsw-radius-pill);
    display: inline-flex;
    gap: 4px;
}

.travel-search.tsw-tabs-segmented .search-tab,
.tsw-tabs-segmented .travel-search .search-tab {
    background: transparent !important;
    border: none !important;
    border-radius: var(--tsw-radius-pill) !important;
    padding: 9px 18px !important;
    color: var(--tsw-text-muted) !important;
}

.travel-search.tsw-tabs-segmented .search-tab.active,
.tsw-tabs-segmented .travel-search .search-tab.active {
    background: #ffffff !important;
    color: var(--tsw-primary) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

.travel-search.tsw-tabs-segmented .search-tab.active::after,
.tsw-tabs-segmented .travel-search .search-tab.active::after {
    display: none !important;
}

/* ==========================================================================
   Top Pills (FlyToday / Alibaba Style - یک‌طرفه / کلاس)
   ========================================================================== */

.travel-search .tsw-top-pills {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.travel-search .tsw-pill-dropdown {
    position: relative;
    display: inline-block;
}

.travel-search .tsw-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    background: #ffffff;
    border: 1.5px solid var(--tsw-border);
    border-radius: var(--tsw-radius-pill);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--tsw-text-muted);
    cursor: pointer;
    transition: var(--tsw-transition);
    outline: none;
    user-select: none;
}

.travel-search .tsw-pill-btn:hover {
    border-color: #cbd5e1;
    background-color: #f8fafc;
    color: var(--tsw-text-dark);
}

.travel-search .tsw-pill-dropdown.is-open .tsw-pill-btn {
    border-color: var(--tsw-primary);
    color: var(--tsw-primary);
    background-color: var(--tsw-primary-light);
}

.travel-search .tsw-pill-icon {
    width: 14px;
    height: 14px;
    stroke-width: 2.2px;
    transition: transform 0.2s ease;
}

.travel-search .tsw-pill-dropdown.is-open .tsw-pill-icon {
    transform: rotate(180deg);
}

.travel-search .tsw-pill-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 140px;
    background: #ffffff;
    border: 1px solid var(--tsw-border);
    border-radius: var(--tsw-radius-md);
    box-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.12), 0 0 1px rgba(15, 23, 42, 0.15);
    padding: 6px 0;
    z-index: 100;
    animation: tswMenuFadeIn 0.18s ease forwards;
}

.travel-search .tsw-pill-dropdown.is-open .tsw-pill-menu {
    display: block;
}

@keyframes tswMenuFadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.travel-search .tsw-pill-option {
    padding: 9px 16px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--tsw-text-dark);
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
    text-align: right;
}

.travel-search .tsw-pill-option:hover {
    background-color: #f1f5f9;
    color: var(--tsw-primary);
}

.travel-search .tsw-pill-option.active {
    color: var(--tsw-primary);
    font-weight: 700;
    background-color: var(--tsw-primary-light);
}

/* ==========================================================================
   Unified Search Strip (FlyToday / Alibaba Flat Modular Layout)
   ========================================================================== */

.travel-search .tsw-search-strip {
    display: flex;
    align-items: stretch;
    gap: 12px;
    row-gap: 14px;
    width: 100%;
    position: relative;
    flex-wrap: wrap;
}

/* Standard Field Box */
.travel-search .tsw-field-box {
    background: #ffffff;
    border: 1.5px solid var(--tsw-border);
    border-radius: var(--tsw-radius-md);
    padding: 8px 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    transition: var(--tsw-transition);
    cursor: pointer;
    min-height: 58px;
    flex: 1 1 160px;
    min-width: 145px;
    box-sizing: border-box;
}

.travel-search .tsw-field-box:hover {
    border-color: #cbd5e1;
    background-color: var(--tsw-bg-input-hover);
}

.travel-search .tsw-field-box:focus-within {
    border-color: var(--tsw-border-focus);
    background-color: #ffffff;
    box-shadow: 0 0 0 3.5px var(--tsw-primary-glow);
    z-index: 5;
}

.travel-search .tsw-box-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--tsw-text-muted);
    margin-bottom: 2px;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    display: block;
    user-select: none;
}

.travel-search .tsw-box-input-wrap {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    position: relative;
}

.travel-search .tsw-box-input-wrap input,
.travel-search .tsw-box-input-wrap select,
.travel-search .tsw-pax-display {
    border: none !important;
    outline: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100%;
    font-size: 14.5px !important;
    font-weight: 700 !important;
    color: var(--tsw-text-dark) !important;
    font-family: var(--tsw-font) !important;
    height: auto !important;
    line-height: 1.4 !important;
    text-overflow: ellipsis;
    box-shadow: none !important;
    order: 1;
}

.travel-search .tsw-box-input-wrap input::placeholder {
    color: var(--tsw-text-light);
    font-weight: 500;
    font-size: 13.5px;
}

.travel-search .tsw-box-icon {
    color: var(--tsw-text-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    font-size: 18px;
    line-height: 1;
    transition: color 0.2s ease;
    order: 0;
}

.travel-search .tsw-box-icon i,
.travel-search .tsw-box-icon span,
.travel-search .tsw-box-icon .tsw-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
    font-style: normal;
}

.travel-search .tsw-field-box:focus-within .tsw-box-icon,
.travel-search .tsw-field-box:hover .tsw-box-icon {
    color: var(--tsw-primary);
}

.travel-search .tsw-box-icon svg {
    width: 18px;
    height: 18px;
    stroke-width: 2px;
}

/* ==========================================================================
   Location Pair (مبدا و مقصد به همراه دکمه جابه‌جایی ⇄)
   ========================================================================== */

.travel-search .tsw-location-pair {
    display: flex;
    align-items: stretch;
    position: relative;
    flex: 2.5 1 420px;
    min-width: 380px;
    gap: 0;
}

.travel-search .tsw-location-pair .tsw-origin-box {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-left: none;
    flex: 1 1 50%;
    min-width: 180px;
    padding-left: 22px;
}

.travel-search .tsw-location-pair .tsw-dest-box {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    flex: 1 1 50%;
    min-width: 180px;
    padding-right: 22px;
}

/* Swap Button Wrapper (Div 1: Relative in normal flex flow) */
.travel-search .tsw-swap-wrapper {
    position: relative;
    width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    flex-shrink: 0;
}

/* Swap Button (Div 2: Absolute inside relative wrapper) */
.travel-search .tsw-swap-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    border: 1.5px solid var(--tsw-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    color: var(--tsw-text-muted);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    padding: 0;
    outline: none;
}

.travel-search .tsw-swap-btn svg,
.travel-search .tsw-swap-btn i {
    width: 17px;
    height: 17px;
    stroke-width: 2.2px;
    transition: transform 0.35s ease;
}

.travel-search .tsw-swap-btn:hover {
    color: var(--tsw-primary);
    border-color: var(--tsw-primary);
    background-color: var(--tsw-primary-light);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.travel-search .tsw-swap-btn.is-swapped svg,
.travel-search .tsw-swap-btn.is-swapped i {
    transform: rotate(180deg);
}

.travel-search .tsw-swap-btn:active {
    transform: translate(-50%, -50%) scale(0.9);
}

.travel-search .tsw-highlight {
    animation: tswHighlightFlash 0.3s ease;
}

@keyframes tswHighlightFlash {
    0% { background-color: #dbeafe; }
    100% { background-color: transparent; }
}

/* ==========================================================================
   Searchable Location Dropdown Modal (FlyToday / Alibaba Style)
   ========================================================================== */

.travel-search .tsw-location-box {
    cursor: pointer;
    position: relative;
}

.travel-search .tsw-location-box.is-open {
    border-color: var(--tsw-primary) !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3.5px var(--tsw-primary-glow) !important;
    z-index: 999;
}

.travel-search .tsw-location-box .tsw-loc-trigger {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
}

.travel-search .tsw-location-box .tsw-box-icon {
    color: var(--tsw-primary);
    flex-shrink: 0;
    order: 0;
}

.travel-search .tsw-location-box .tsw-loc-val-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    order: 1;
}

.travel-search .tsw-location-box .tsw-loc-input {
    cursor: pointer !important;
    user-select: none;
    width: auto !important;
    max-width: 100% !important;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.travel-search .tsw-location-box .tsw-box-icon svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.2px;
}

.travel-search .tsw-location-box .tsw-box-icon i {
    font-size: 19px;
    line-height: 1;
}

.travel-search .tsw-loc-chevron {
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    transition: transform 0.25s ease, color 0.2s ease;
    flex-shrink: 0;
}

.travel-search .tsw-loc-chevron svg,
.travel-search .tsw-loc-chevron i {
    width: 13px;
    height: 13px;
    stroke-width: 2.6px;
}

.travel-search .tsw-location-box.is-open .tsw-loc-chevron {
    transform: rotate(180deg);
    color: var(--tsw-primary);
}

/* Location Modal Popup */
.travel-search .tsw-loc-modal {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 320px;
    background: #ffffff;
    border: 1px solid var(--tsw-border);
    border-radius: 20px;
    box-shadow: 0 25px 50px -10px rgba(15, 23, 42, 0.18), 0 0 1px rgba(15, 23, 42, 0.12);
    z-index: 99999;
    display: none;
    cursor: default;
    overflow: hidden;
    animation: tswMenuFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    direction: rtl;
    text-align: right;
}

.travel-search .tsw-loc-header {
    padding: 14px 16px 10px 16px;
    border-bottom: 1px solid #f1f5f9;
    background: #ffffff;
}

.travel-search .tsw-loc-title-wrap {
    margin-bottom: 10px;
}

.travel-search .tsw-loc-modal-title {
    font-size: 14.5px;
    font-weight: 800;
    color: var(--tsw-text-dark);
}

.travel-search .tsw-loc-search-wrap {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    transition: var(--tsw-transition);
}

.travel-search .tsw-loc-search-wrap:focus-within {
    border-color: var(--tsw-primary);
    background: #ffffff;
    box-shadow: 0 0 0 3px var(--tsw-primary-glow);
}

.travel-search .tsw-loc-search-icon {
    width: 17px;
    height: 17px;
    color: var(--tsw-text-light);
    stroke-width: 2.2px;
    flex-shrink: 0;
}

.travel-search .tsw-loc-search-input {
    border: none !important;
    background: transparent !important;
    outline: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    color: var(--tsw-text-dark) !important;
    font-family: var(--tsw-font) !important;
    height: auto !important;
    line-height: normal !important;
    box-shadow: none !important;
}

.travel-search .tsw-loc-search-input::placeholder {
    color: var(--tsw-text-light);
    font-weight: 500;
}

.travel-search .tsw-loc-clear-btn {
    border: none;
    background: #e2e8f0;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    padding: 0;
    transition: background 0.15s;
    outline: none;
    flex-shrink: 0;
}

.travel-search .tsw-loc-clear-btn:hover {
    background: #cbd5e1;
    color: #0f172a;
}

/* Modal Body & List */
.travel-search .tsw-loc-body {
    padding: 10px 0 8px 0;
    max-height: 280px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.travel-search .tsw-loc-body::-webkit-scrollbar {
    width: 5px;
}

.travel-search .tsw-loc-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.travel-search .tsw-loc-section-title {
    padding: 4px 18px 8px 18px;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--tsw-text-light);
    text-transform: uppercase;
    letter-spacing: 0.2px;
}

.travel-search .tsw-loc-list {
    display: flex;
    flex-direction: column;
}

.travel-search .tsw-loc-item {
    padding: 9px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
    user-select: none;
}

.travel-search .tsw-loc-item:hover {
    background: #f1f5f9;
}

.travel-search .tsw-loc-item:active {
    background: var(--tsw-primary-light);
}

.travel-search .tsw-loc-item-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f1f5f9;
    color: var(--tsw-text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.travel-search .tsw-loc-item-icon svg,
.travel-search .tsw-loc-item-icon i {
    width: 17px;
    height: 17px;
    stroke-width: 2.2px;
}

.travel-search .tsw-loc-item:hover .tsw-loc-item-icon {
    background: var(--tsw-primary-light);
    color: var(--tsw-primary);
    transform: scale(1.06);
}

.travel-search .tsw-loc-item-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.travel-search .tsw-loc-item-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--tsw-text-dark);
    transition: color 0.15s;
}

.travel-search .tsw-loc-item:hover .tsw-loc-item-title {
    color: var(--tsw-primary);
}

.travel-search .tsw-loc-item-sub {
    font-size: 11.5px;
    font-weight: 500;
    color: var(--tsw-text-light);
    word-break: break-word;
    line-height: 1.4;
}

.travel-search .tsw-loc-empty {
    padding: 30px 18px;
    text-align: center;
    color: var(--tsw-text-light);
    font-size: 13.5px;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.travel-search .tsw-loc-empty .tsw-empty-icon {
    width: 28px;
    height: 28px;
    color: #cbd5e1;
}

/* ==========================================================================
   Date Boxes (تاریخ رفت و تاریخ برگشت)
   ========================================================================== */

.travel-search .tsw-date-box {
    flex: 1 1 140px;
    min-width: 130px;
}

.travel-search .tsw-date-box input[data-jdp] {
    cursor: pointer;
}

.travel-search .tsw-date-box.disabled-field {
    opacity: 0.45;
    pointer-events: none;
    background-color: #f8fafc;
    filter: grayscale(0.6);
}

/* ==========================================================================
   Passengers Popup Box & Floating Modal (مسافران)
   ========================================================================== */

.travel-search .tsw-pax-box {
    flex: 1 1 150px;
    min-width: 140px;
    position: relative;
}

.travel-search .tsw-pax-trigger {
    cursor: pointer;
}

.travel-search .tsw-pax-display {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--tsw-text-dark);
    user-select: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

/* Floating Modal */
.travel-search .tsw-pax-modal {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 290px;
    background: #ffffff;
    border: 1px solid var(--tsw-border);
    border-radius: 18px;
    box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.16), 0 0 1px rgba(15, 23, 42, 0.15);
    padding: 16px 20px;
    z-index: 99999;
    display: none;
    cursor: default;
    animation: tswMenuFadeIn 0.18s ease forwards;
}

.travel-search .tsw-pax-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.travel-search .tsw-pax-row:last-of-type {
    border-bottom: none;
}

.travel-search .tsw-pax-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: right;
}

.travel-search .tsw-pax-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--tsw-text-dark);
}

.travel-search .tsw-pax-sub {
    font-size: 11.5px;
    font-weight: 500;
    color: var(--tsw-text-light);
}

.travel-search .tsw-pax-counter {
    display: flex;
    align-items: center;
    gap: 12px;
}

.travel-search .tsw-btn-dec,
.travel-search .tsw-btn-inc {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid #cbd5e1;
    background: #ffffff;
    color: var(--tsw-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--tsw-transition);
    outline: none;
    padding: 0;
    line-height: 1;
    user-select: none;
}

.travel-search .tsw-btn-dec:hover,
.travel-search .tsw-btn-inc:hover {
    background-color: var(--tsw-primary-light);
    border-color: var(--tsw-primary);
}

.travel-search .tsw-btn-dec:active,
.travel-search .tsw-btn-inc:active {
    transform: scale(0.92);
}

.travel-search .tsw-count-val {
    font-size: 15px;
    font-weight: 700;
    color: var(--tsw-text-dark);
    min-width: 20px;
    text-align: center;
    user-select: none;
}

.travel-search .tsw-pax-footer {
    margin-top: 14px;
    display: flex;
    justify-content: flex-start;
}

.travel-search .tsw-pax-confirm-btn {
    background: var(--tsw-primary);
    color: #ffffff;
    border: none;
    border-radius: var(--tsw-radius-pill);
    padding: 8px 24px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--tsw-transition);
    outline: none;
}

.travel-search .tsw-pax-confirm-btn:hover {
    background: var(--tsw-primary-hover);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* ==========================================================================
   MirzaKala Backend Options Box & WooCommerce Attributes
   ========================================================================== */

.travel-search .tsw-mk-option-box,
.travel-search .tsw-attr-box,
.travel-search .tsw-custom-text-box {
    flex: 1 1 150px;
    min-width: 140px;
}

.travel-search .tsw-attr-select {
    cursor: pointer;
}

/* ==========================================================================
   Search Button (دکمه جست‌وجو)
   ========================================================================== */

.travel-search .tsw-search-btn.search-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    direction: rtl !important;
    height: 58px;
    min-height: 58px;
    padding: 0 30px;
    background: var(--tsw-primary) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: var(--tsw-radius-md);
    font-size: 15.5px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: none !important;
    transition: background 0.2s ease, opacity 0.2s ease;
    white-space: nowrap;
    flex: 1 1 140px;
    min-width: 130px;
    outline: none;
    user-select: none;
    position: relative;
}

.travel-search .tsw-search-btn.search-button::before {
    display: none !important;
}

.travel-search .tsw-search-btn.search-button .tsw-btn-icon,
.travel-search .tsw-search-btn.search-button svg,
.travel-search .tsw-search-btn.search-button i,
.travel-search .tsw-search-btn.search-button img,
.travel-search .tsw-search-btn.search-button .tsw-icon {
    width: 20px;
    height: 20px;
    font-size: 18px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    stroke-width: 2.4px;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.travel-search .tsw-search-btn.search-button i[class*="fa-"],
.travel-search .tsw-search-btn.search-button i[class*="ri-"],
.travel-search .tsw-search-btn.search-button i[class*="mk-"] {
    width: auto;
    height: auto;
    font-size: 18px;
}

.travel-search .tsw-search-btn.search-button .tsw-btn-text,
.travel-search .tsw-search-btn.search-button span {
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.2px;
}

.travel-search .tsw-search-btn.search-button:hover {
    background: var(--tsw-primary-hover) !important;
    color: #ffffff !important;
    box-shadow: none !important;
    transform: none !important;
}

.travel-search .tsw-search-btn.search-button:active {
    background: #1d4ed8 !important;
    box-shadow: none !important;
    transform: scale(0.99);
}

/* ==========================================================================
   Legacy Search Fields Row (for backwards compatibility)
   ========================================================================== */

.travel-search .search-fields {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    flex-wrap: wrap;
}

.travel-search .field {
    flex: 1 1 180px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 160px;
    position: relative;
}

.travel-search .field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--tsw-text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.travel-search .field input[type="text"],
.travel-search .field input[type="date"],
.travel-search .field select {
    width: 100%;
    height: 52px;
    padding: 10px 16px;
    border: 1.5px solid var(--tsw-border);
    border-radius: var(--tsw-radius-sm);
    background-color: var(--tsw-bg-input);
    color: var(--tsw-text-dark);
    font-size: 14px;
    font-weight: 500;
    transition: var(--tsw-transition);
    outline: none;
    direction: rtl;
    text-align: right;
}

.travel-search .field input[type="text"]:focus,
.travel-search .field select:focus {
    background-color: #ffffff;
    border-color: var(--tsw-border-focus);
    box-shadow: 0 0 0 4px var(--tsw-primary-glow);
}

/* ==========================================================================
   Jalali Datepicker Theme & Overrides
   ========================================================================== */

jdp-container,
jdp-container * {
    font-family: var(--tsw-font) !important;
}

jdp-container {
    z-index: 999999 !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.18), 0 0 1px rgba(15, 23, 42, 0.15) !important;
    border: 1px solid var(--tsw-border) !important;
    overflow: hidden !important;
}

jdp-container .jdp-header {
    background: #f8fafc !important;
    border-bottom: 1px solid var(--tsw-border) !important;
    padding: 10px 12px !important;
}

jdp-container .jdp-btn-today {
    background-color: var(--tsw-primary) !important;
    color: #fff !important;
    border-radius: 8px !important;
    font-size: 12px !important;
}

jdp-container .jdp-days .jdp-day.selected {
    background-color: var(--tsw-primary) !important;
    color: #ffffff !important;
    border-radius: 8px !important;
}

jdp-container .jdp-days .jdp-day.today:not(.selected) {
    border: 1.5px solid var(--tsw-primary) !important;
    color: var(--tsw-primary) !important;
    border-radius: 8px !important;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

@media (max-width: 1180px) {
    .travel-search .tsw-location-pair {
        flex: 1 1 100%;
        min-width: 100%;
    }
    .travel-search .tsw-field-box {
        flex: 1 1 150px;
        min-width: 140px;
    }
    .travel-search .tsw-search-btn.search-button {
        flex: 1 1 140px;
        min-width: 130px;
    }
}

@media (max-width: 820px) {
    .travel-search .search-panel {
        padding: 18px 16px;
        border-radius: var(--tsw-radius-md);
    }
    .travel-search .search-tabs {
        gap: 4px;
    }
    .travel-search .search-tab {
        padding: 10px 16px;
        font-size: 13.5px;
    }
    .travel-search .tsw-search-strip {
        gap: 10px;
    }
    .travel-search .tsw-location-pair {
        flex: 1 1 100%;
        min-width: 100%;
    }
    .travel-search .tsw-field-box {
        flex: 1 1 calc(50% - 6px);
        min-width: 135px;
    }
    .travel-search .tsw-search-btn.search-button {
        flex: 1 1 calc(50% - 6px);
        min-width: 135px;
    }
    .travel-search .tsw-pax-modal {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        width: 90vw;
        max-width: 320px;
    }
}

@media (max-width: 520px) {
    .travel-search .tsw-location-pair {
        flex-direction: column;
        gap: 8px;
    }
    .travel-search .tsw-location-pair .tsw-origin-box,
    .travel-search .tsw-location-pair .tsw-dest-box {
        border-radius: var(--tsw-radius-md) !important;
        border: 1.5px solid var(--tsw-border) !important;
        padding: 8px 14px !important;
        min-width: 100% !important;
    }
    .travel-search .tsw-swap-wrapper {
        width: 100%;
        height: 0;
        margin: 0;
    }
    .travel-search .tsw-swap-btn {
        position: relative;
        top: auto;
        left: auto;
        transform: none !important;
        align-self: center;
        margin: -16px auto;
    }
    .travel-search .tsw-field-box {
        flex: 1 1 100%;
        min-width: 100%;
    }
    .travel-search .tsw-search-btn.search-button {
        flex: 1 1 100%;
        width: 100%;
        height: 52px;
    }
}

/* ==========================================================================
   BLURRY / GLASSMORPHISM THEME (سبک بلوری و شیشه‌ای مات)
   ========================================================================== */

.travel-search.tsw-theme-blurry,
.tsw-theme-blurry .travel-search {
    --tsw-glass-bg: rgba(255, 255, 255, 0.52);
    --tsw-glass-blur: 24px;
    --tsw-glass-border: rgba(255, 255, 255, 0.65);
}

/* Entire Widget Card (باکس کل ویجت) */
.travel-search.tsw-theme-blurry .tsw-card-wrapper,
.tsw-theme-blurry .travel-search .tsw-card-wrapper,
.travel-search.tsw-theme-blurry:not(:has(.tsw-card-wrapper)) .search-panel,
.tsw-theme-blurry .travel-search:not(:has(.tsw-card-wrapper)) .search-panel {
    background: var(--tsw-glass-bg) !important;
    backdrop-filter: blur(var(--tsw-glass-blur)) saturate(190%) !important;
    -webkit-backdrop-filter: blur(var(--tsw-glass-blur)) saturate(190%) !important;
    border: 1.5px solid var(--tsw-glass-border) !important;
    box-shadow: 0 30px 60px -15px rgba(15, 23, 42, 0.15), 
                0 0 0 1px rgba(255, 255, 255, 0.4) inset,
                0 10px 30px rgba(255, 255, 255, 0.2) inset !important;
}

/* Blurry Tabs Header */
.travel-search.tsw-theme-blurry .search-tabs-container,
.tsw-theme-blurry .travel-search .search-tabs-container {
    background: rgba(255, 255, 255, 0.22) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4) !important;
}

/* Blurry Tabs */
.travel-search.tsw-theme-blurry .search-tab,
.tsw-theme-blurry .travel-search .search-tab {
    color: #1e293b !important;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
    background: transparent !important;
    border-color: transparent !important;
}

.travel-search.tsw-theme-blurry .search-tab:hover,
.tsw-theme-blurry .travel-search .search-tab:hover {
    background: rgba(255, 255, 255, 0.45) !important;
    color: var(--tsw-primary) !important;
}

.travel-search.tsw-theme-blurry .search-tab.active,
.tsw-theme-blurry .travel-search .search-tab.active {
    background: rgba(255, 255, 255, 0.78) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    color: var(--tsw-primary, #2563eb) !important;
    border: 1px solid rgba(255, 255, 255, 0.7) !important;
    border-bottom-color: rgba(255, 255, 255, 0.78) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(255, 255, 255, 0.7) inset !important;
}

.travel-search.tsw-theme-blurry .search-tab.active::after,
.tsw-theme-blurry .travel-search .search-tab.active::after {
    background: rgba(255, 255, 255, 0.78) !important;
}

/* Blurry Search Panel & Fields */
.travel-search.tsw-theme-blurry .search-panel,
.tsw-theme-blurry .travel-search .search-panel {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.travel-search.tsw-theme-blurry .tsw-field-box,
.tsw-theme-blurry .travel-search .tsw-field-box {
    background: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.8) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02) !important;
}

.travel-search.tsw-theme-blurry .tsw-field-box:hover,
.tsw-theme-blurry .travel-search .tsw-field-box:hover {
    background: rgba(255, 255, 255, 0.8) !important;
    border-color: rgba(255, 255, 255, 0.95) !important;
}

.travel-search.tsw-theme-blurry .tsw-field-box:focus-within,
.tsw-theme-blurry .travel-search .tsw-field-box:focus-within {
    background: rgba(255, 255, 255, 0.94) !important;
    border-color: var(--tsw-primary) !important;
    box-shadow: 0 0 0 3.5px var(--tsw-primary-glow), 0 8px 20px rgba(37, 99, 235, 0.12) !important;
}

/* Blurry Swap button */
.travel-search.tsw-theme-blurry .tsw-swap-btn,
.tsw-theme-blurry .travel-search .tsw-swap-btn {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

/* Blurry Top Pills */
.travel-search.tsw-theme-blurry .tsw-pill-btn,
.tsw-theme-blurry .travel-search .tsw-pill-btn {
    background: rgba(255, 255, 255, 0.65) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.8) !important;
    color: #1e293b !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03) !important;
}

.travel-search.tsw-theme-blurry .tsw-pill-btn:hover,
.tsw-theme-blurry .travel-search .tsw-pill-btn:hover {
    background: rgba(255, 255, 255, 0.92) !important;
    border-color: var(--tsw-primary) !important;
}

.travel-search.tsw-theme-blurry .tsw-swap-btn,
.tsw-theme-blurry .travel-search .tsw-swap-btn {
    background: rgba(255, 255, 255, 0.88) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.85) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08) !important;
}

.travel-search.tsw-theme-blurry .tsw-swap-btn:hover,
.tsw-theme-blurry .travel-search .tsw-swap-btn:hover {
    background: #ffffff !important;
    border-color: var(--tsw-primary) !important;
    color: var(--tsw-primary) !important;
}

/* Blurry Popups & Dropdowns */
.travel-search.tsw-theme-blurry .tsw-passengers-popup,
.tsw-theme-blurry .travel-search .tsw-passengers-popup,
.travel-search.tsw-theme-blurry .tsw-pill-menu,
.tsw-theme-blurry .travel-search .tsw-pill-menu,
.travel-search.tsw-theme-blurry .tsw-suggestions-dropdown,
.tsw-theme-blurry .travel-search .tsw-suggestions-dropdown,
.travel-search.tsw-theme-blurry .tsw-loc-modal,
.tsw-theme-blurry .travel-search .tsw-loc-modal {
    background: rgba(255, 255, 255, 0.88) !important;
    backdrop-filter: blur(28px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(28px) saturate(190%) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.85) !important;
    box-shadow: 0 25px 60px -10px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.5) inset !important;
}

.travel-search.tsw-theme-blurry .tsw-loc-header,
.tsw-theme-blurry .travel-search .tsw-loc-header {
    background: rgba(255, 255, 255, 0.5) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4) !important;
}

.travel-search.tsw-theme-blurry .tsw-loc-search-wrap,
.tsw-theme-blurry .travel-search .tsw-loc-search-wrap {
    background: rgba(255, 255, 255, 0.75) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.85) !important;
}

.travel-search.tsw-theme-blurry .tsw-loc-item:hover,
.tsw-theme-blurry .travel-search .tsw-loc-item:hover {
    background: rgba(255, 255, 255, 0.6) !important;
}

/* Blurry Jalali Datepicker Calendar */
.travel-search.tsw-theme-blurry ~ jdp-container,
body:has(.travel-search.tsw-theme-blurry) jdp-container,
body:has(.tsw-theme-blurry) jdp-container {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(24px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.8) !important;
    box-shadow: 0 25px 50px -10px rgba(15, 23, 42, 0.2) !important;
}

/* Blurry Search Button - ساده و بدون سایه */
.travel-search.tsw-theme-blurry .tsw-search-btn.search-button,
.tsw-theme-blurry .travel-search .tsw-search-btn.search-button {
    background: var(--tsw-primary) !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    color: #ffffff !important;
    transform: none !important;
}

.travel-search.tsw-theme-blurry .tsw-search-btn.search-button:hover,
.tsw-theme-blurry .travel-search .tsw-search-btn.search-button:hover {
    background: var(--tsw-primary-hover) !important;
    box-shadow: none !important;
    transform: none !important;
}

/* ==========================================================================
   DARK THEME (تم تیره مدرن)
   ========================================================================== */

.travel-search.tsw-theme-dark .tsw-card-wrapper,
.tsw-theme-dark .travel-search .tsw-card-wrapper {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
}

.travel-search.tsw-theme-dark .search-tabs-container,
.tsw-theme-dark .travel-search .search-tabs-container {
    background: #1e293b !important;
    border-bottom-color: #334155 !important;
}

.travel-search.tsw-theme-dark .search-tab,
.tsw-theme-dark .travel-search .search-tab {
    color: #94a3b8 !important;
}

.travel-search.tsw-theme-dark .search-tab:hover,
.tsw-theme-dark .travel-search .search-tab:hover {
    color: #f8fafc !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

.travel-search.tsw-theme-dark .search-tab.active,
.tsw-theme-dark .travel-search .search-tab.active {
    background: #0f172a !important;
    color: #38bdf8 !important;
    border-color: #334155 !important;
    border-bottom-color: #0f172a !important;
}

.travel-search.tsw-theme-dark .search-tab.active::after,
.tsw-theme-dark .travel-search .search-tab.active::after {
    background: #0f172a !important;
}

.travel-search.tsw-theme-dark .tsw-field-box,
.tsw-theme-dark .travel-search .tsw-field-box {
    background: #1e293b !important;
    border-color: #334155 !important;
}

.travel-search.tsw-theme-dark .tsw-field-box input,
.tsw-theme-dark .travel-search .tsw-field-box input {
    color: #f8fafc !important;
}

.travel-search.tsw-theme-dark .tsw-box-label,
.tsw-theme-dark .travel-search .tsw-box-label {
    color: #94a3b8 !important;
}

.travel-search.tsw-theme-dark .tsw-pill-btn,
.tsw-theme-dark .travel-search .tsw-pill-btn {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #cbd5e1 !important;
}

.travel-search.tsw-theme-dark .tsw-swap-btn,
.tsw-theme-dark .travel-search .tsw-swap-btn {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #94a3b8 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}

.travel-search.tsw-theme-dark .tsw-swap-btn:hover,
.tsw-theme-dark .travel-search .tsw-swap-btn:hover {
    background: #334155 !important;
    color: #38bdf8 !important;
    border-color: #38bdf8 !important;
}


