:root {
    --adp-color-current-date: #ff9f43;
    --adp-current-date-dot-color: #333333;
    --adp-color-current-date-hover: #333333;
    --adp-btn-color: #333333;
}

.main-markar-container {
    font-family: Vazir !important;
}

.custom-checkbox {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    font-size: 16px;
    color: #333;
    transition: color 0.3s;
}

.custom-checkbox input[type="checkbox"] {
    display: none;
}

.custom-checkbox .checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #333;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    padding-top: 3px;
    transition: background-color 0.3s, border-color 0.3s, transform 0.3s;
    transform-style: preserve-3d;
}

.custom-checkbox .checkmark::before {
    content: "\2713";
    font-size: 16px;
    color: transparent;
    transition: color 0.3s, transform 0.3s;
}

.custom-checkbox input[type="checkbox"]:checked+.checkmark {
    background-color: #333;
    border-color: #333;
    transform: scale(1.1) rotateZ(360deg) rotateY(360deg);
}

.custom-checkbox input[type="checkbox"]:checked+.checkmark::before {
    color: #fff;
}

.custom-checkbox:hover {
    color: #666;
}

.custom-checkbox:hover .checkmark {
    border-color: #666;
    background-color: #f0f0f0;
    transform: scale(1.05);
}

.custom-checkbox input[type="checkbox"]:focus+.checkmark {
    box-shadow: 0 0 3px 2px rgba(0, 0, 0, 0.2);
    outline: none;
}

.custom-checkbox .checkmark,
.custom-checkbox input[type="checkbox"]:checked+.checkmark {
    transition: background-color 1.3s, border-color 1.3s, color 1.3s, transform 0.3s;
}

/* From Uiverse.io by Yaya12085 */
.radio-inputs {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    border-radius: 0.5rem;
    background-color: #EEE;
    box-sizing: border-box;
    box-shadow: 0 0 0px 1px rgba(0, 0, 0, 0.06);
    padding: 0.25rem;
    width: 230px;
    font-size: 14px;
}

.radio-inputs .radio {
    flex: 1 1 auto;
    text-align: center;
}

.radio-inputs .radio input {
    display: none;
}

.radio-inputs .radio .name {
    display: flex;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    border: none;
    padding: .2rem 0;
    color: rgba(51, 65, 85, 1);
    transition: all .15s ease-in-out;
}

.radio-inputs .radio input:checked+.name {
    background-color: #fff;
    font-weight: 600;
}

/* From Uiverse.io by cssbuttons-io */
.btn {
    position: relative;
    font-size: 17px;
    text-transform: uppercase;
    text-decoration: none;
    /* padding: 1em 2.5em; */
    display: inline-block;
    border-radius: 10px;
    transition: all .5s;
    border: none;
    font-family: inherit;
    font-weight: 500;
    color: white;
    background-color: #333333;
}

.btn:hover {
    /* transform: translateY(-3px); */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.5);
}

.btn::after {
    content: "";
    display: inline-block;
    height: 100%;
    width: 100%;
    border-radius: 100px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    transition: all .4s;
}

.btn::after {
    background-color: #fff;
}

.btn:hover::after {
    transform: scaleX(1.4) scaleY(1.6);
    opacity: 0;
}




/* dropdown */

.dropdown-select {
    background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0) 100%);
    background-repeat: repeat-x;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#40FFFFFF', endColorstr='#00FFFFFF', GradientType=0);
    background-color: #fff;
    border-radius: 6px;
    border: solid 1px #eee;
    /* box-shadow: 0px 2px 5px 0px rgba(155, 155, 155, 0.5); */
    box-sizing: border-box;
    cursor: pointer;
    display: block;
    float: left;
    font-size: 14px;
    font-weight: normal;
    height: 42px;
    line-height: 40px;
    outline: none;
    padding-left: 18px;
    padding-right: 30px;
    position: relative;
    text-align: left !important;
    transition: all 0.2s ease-in-out;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    white-space: nowrap;
    width: auto;

}

.dropdown-select:focus {
    background-color: #fff;
}

.dropdown-select:hover {
    background-color: #fff;
}

.dropdown-select:active,
.dropdown-select.open {
    background-color: #fff !important;
    border-color: #bbb;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05) inset;
}

.dropdown-select.open:after {
    -webkit-transform: rotate(-180deg);
    transform: rotate(-180deg);
}

.dropdown-select.open .loc-dropdown {
    -webkit-transform: scale(1);
    transform: scale(1);
    opacity: 1;
    pointer-events: auto;
}

.dropdown-select.open .option {
    cursor: pointer;
}

.dropdown-select.wide {
    width: 150px;
}

.dropdown-select.wide .loc-dropdown {
    left: 0 !important;
    right: 0 !important;
}

.dropdown-select .loc-dropdown {
    box-sizing: border-box;
    transition: all 0.15s cubic-bezier(0.25, 0, 0.25, 1.75), opacity 0.1s linear;
    -webkit-transform: scale(0.75);
    transform: scale(0.75);
    -webkit-transform-origin: 50% 0;
    transform-origin: 50% 0;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.09);
    background-color: #fff;
    border-radius: 6px;
    margin-top: 4px;
    padding: 3px 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 999;
    max-height: 250px;
    overflow: auto;
    border: 1px solid #ddd;
}

/* Button Loading / Spinner Style */
.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
    cursor: wait;
}

.btn-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    margin-left: -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    /* White spinner */
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Modern Toast Animation */
@keyframes slideInToast {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.modern-toast.show {
    animation: slideInToast 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    /* Bouncy effect */
}

.dropdown-select .list:hover .option:not(:hover) {
    background-color: transparent !important;
}

.dropdown-select .dd-search {
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0.5rem;
    position: sticky;
    top: 5px;
}

.dropdown-select .dd-searchbox {
    width: 90%;
    height: 35px;
    padding: 0.5rem;
    border: 1px solid #999;
    border-color: #999;
    border-radius: 4px;
    outline: none;
}

.dropdown-select .dd-searchbox:focus {
    border-color: #333;
}

.dropdown-select .list ul {
    padding: 0;
}

.dropdown-select .option {
    cursor: default;
    font-weight: 400;
    line-height: 40px;
    outline: none;
    padding-left: 18px;
    padding-right: 29px;
    text-align: left;
    transition: all 0.2s;
    list-style: none;
}

.dropdown-select .option:hover,
.dropdown-select .option:focus {
    background-color: #f6f6f6 !important;
}

.dropdown-select .option.selected {
    font-weight: 600;
    color: #333;
}

.dropdown-select .option.selected:focus {
    background: #f6f6f6;
}

.dropdown-select a {
    color: #aaa;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.dropdown-select a:hover {
    color: #666;
}


/* Modern Passenger Dropdown */
.passenger-dropdown {
    position: relative;
    width: 200px;
}

.dropdown-content {
    position: absolute;
    top: 55px;
    right: 0;
    left: auto;
    background-color: #fff;
    border: none;
    padding: 24px;
    border-radius: 20px;
    z-index: 100;
    width: 320px;
    /* Slightly wider for the grid */
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.15);
    display: none;
    transform-origin: top right;
    animation: dropdownFade 0.2s ease-out forwards;
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* NEW: Clean List Layout for Counters */
.counters-container {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 24px;
}

.counter-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}

.counter-container:last-child {
    border-bottom: none;
}

.counter-label {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    text-transform: none;
    letter-spacing: normal;
}

.counter {
    display: flex;
    align-items: center;
    gap: 16px;
    background: transparent;
    padding: 0;
    box-shadow: none;
    border-radius: 0;
}

.counter-value {
    font-size: 18px;
    font-weight: 600;
    width: 24px;
    text-align: center;
    margin: 0;
    color: #333;
    min-width: 20px;
}

/* Modern Circular Buttons - Outline Style */
.decrease-btn,
.increase-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #e0e0e0;
    background-color: #fff;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 18px;
    line-height: 1;
    padding: 0;
}

.decrease-btn:hover,
.increase-btn:hover {
    border-color: #333;
    background-color: #333;
    color: #fff;
}

.decrease-btn:disabled {
    border-color: #eee;
    background-color: #f9f9f9;
    color: #ddd;
    cursor: not-allowed;
}

/* Gender Selection - Segmented Control Style */
.passenger-dropdown .title {
    display: none;
}

/* Custom Divider */
.passenger-dropdown .divider {
    height: 1px;
    background: #eee;
    border: none;
    margin: 0 0 20px 0;
}

.gender-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gender-option-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid #eee;
    cursor: pointer;
    transition: all 0.2s;
}

.gender-option-label:hover {
    background-color: #f5f5f5;
}

/* Remove Focus Outlines */
.gender-option-label input[type="radio"]:focus {
    outline: none;
    box-shadow: none;
}

.gender-option-label:has(input:checked) {
    border-color: #333;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.gender-option-label span {
    font-size: 14px;
    font-weight: 500;
    color: #444;
}

.gender-option-label input[type="radio"] {
    accent-color: #333;
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
}

/* Fix for date inputs: Hide placeholder text when empty */
input[type="date"],
input.modern-datepicker,
input.modern-datepicker-search {
    -height: 42px;
    position: relative;
    /* Default: transparent to hide the 'dd/mm/yyyy' placeholder mask */
    color: transparent;
    transition: color 0.1s;
}

/* Show text when Focused OR when Parent detects value */
input[type="date"]:focus,
input.modern-datepicker:focus,
input.modern-datepicker-search:focus,
.float-active input[type="date"],
.float-active input.modern-datepicker,
.float-active input.modern-datepicker-search {
    color: #333;
}

/* Validation Errors */
.input-error {
    border-color: #ef4444 !important;
    /* Red-500 */
    box-shadow: 0 0 0 1px #ef4444 !important;
}

.error-message {
    color: #ef4444;
    font-size: 11px;
    margin-top: 4px;
    position: absolute;
    bottom: -18px;
    right: 0;
    width: 100%;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

/* Ensure containers have spacing for error message if needed, or rely on absolute positioning */
.select_box,
.datepickersdiv2>div,
.passenger-dropdown .ltr>div {
    margin-bottom: 20px !important;
    /* Make room for absolute error */
}

/* width */
::-webkit-scrollbar {
    width: 3px;
}

/* Track */
::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px grey;
    border-radius: 10px;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 10px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: #333;
}

/* Custom "Minimal" Floating Label */
.markar-floating-label {
    pointer-events: none;
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    background-color: transparent;
    color: #999 !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 20 !important;
    padding: 0 5px;
    border-radius: 0;
    box-shadow: none;
    letter-spacing: normal;
    text-transform: none;
    white-space: nowrap;
}

/* Active State (Focus or Has Value) - Applied via JS to parent class 'float-active' */
.float-active .markar-floating-label {
    top: 0;
    transform: translateY(-50%) scale(0.9);
    background-color: #fff;
    color: #333 !important;
    font-weight: 600 !important;
}

/* Adjust input containers */
.select_box,
.datepickersdiv2>div,
.passenger-dropdown .ltr>div {
    position: relative;
    background-color: #fff;
}

/* Fix for date inputs acting weird */
input[type="date"],
input.modern-datepicker,
input.modern-datepicker-search {
    -height: 40px;
}

/* Unified Border Radius */
.select_box select,
.select_box input,
.dropdown-select,
.datepickersdiv2 input,
.passenger-dropdown input {
    border-radius: 8px !important;
    /* Matches rounded-m of origin/dest */
}

/* Disabled Search Button & Tooltip */
.search-btn-wrapper {
    /* Matches original button flex properties */
}

.search-btn-wrapper.disabled-wrapper {
    cursor: not-allowed;
}

.search-btn-wrapper.disabled-wrapper button {
    pointer-events: none;
    /* Button catches no events, wrapper does */
    opacity: 1;
    /* Reset opacity */
    background-color: #e5e7eb !important;
    /* Light Gray */
    color: #9ca3af !important;
    /* Darker Gray text */
    border: 1px solid #d1d5db !important;
    box-shadow: none !important;
}

.custom-tooltip {
    visibility: hidden;
    width: 150px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px 12px;
    position: absolute;
    z-index: 100;
    bottom: 125%;
    /* Position above */
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
    font-size: 13px;
    font-weight: 500;
    pointer-events: none;
    white-space: normal;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.custom-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.search-btn-wrapper:hover .custom-tooltip {
    visibility: visible;
    opacity: 1;
}

/* Active/Inactive Tab Styles */
.tab-button {
    /* Base styles */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    border-top-left-radius: 0.75rem;
    /* rounded-t-xl */
    border-top-right-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 120px;
    padding-bottom: 2px;
}

@media (min-width: 768px) {
    .tab-button {
        width: 154px;
    }
}

/* Inactive State */
.tab-button {
    background-color: #f5f5f5;
    color: #9ca3af;
    /* text-gray-400 */
    font-weight: 500;
    height: 70px;
    padding-top: 1rem;
    /* pt-4 */
    border-bottom: 1px solid #e5e7eb;
    /* border-gray-200 */
    z-index: 0;
}

.tab-button:hover {
    background-color: #f3f4f6;
    /* bg-gray-100 */
}

.tab-button svg path {
    fill: #9ca3af;
    /* gray-400 */
    transition: fill 0.2s;
}

/* Active State */
.tab-button.active {
    background-color: #ffffff;
    color: #172048;
    /* text-darkBlue-6 */
    font-weight: 700;
    height: 100%;
    /* h-full -> 80px parent */
    padding-top: 0.5rem;
    /* pt-2 */
    border-bottom: none;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.05);
    z-index: 10;
}

/* Active Icon Container */
.tab-button.active .icon-container {
    background-color: white;
    box-shadow: 0 2px 4px 0 rgba(0, 80, 179, 0.25);
    /* If you want blue tint: background-color: #e0f2fe; */
}

.tab-button.active svg path {
    fill: #000000;
}

/* Inactive Icon Container */
.tab-button .icon-container {
    background-color: transparent;
    box-shadow: none;
}

.custom-flatpickr-input {
    background: #1e1e26 !important;
    color: #fff !important;
    border: 1px solid #333 !important;
    border-radius: 12px !important;
    padding: 12px 20px !important;
    font-size: 15px !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.custom-flatpickr-input:focus {
    border-color: #007cba !important;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.3) !important;
    outline: none;
}

.flatpickr-calendar {
    background: rgba(30, 30, 38, 0.95) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 20px !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5) !important;
    margin-top: 10px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.flatpickr-calendar.open {
    opacity: 1;
    transform: translateY(0);
}

.flatpickr-day.selected {
    background: #007cba !important;
    border-color: #007cba !important;
    border-radius: 10px !important;
}

.flatpickr-day:hover {
    background: #333 !important;
    border-radius: 10px !important;
}

div#air-datepicker-global-container {
    z-index: 9999;
}

.dropdown-select.form-select.text-secondary.shadow-none.ps-3.pe-5 {
    min-width: 160px;
}

.air-datepicker-cell.-current- {
    font-weight: bold;
    text-shadow: 0 0 8px rgba(255, 159, 67, 0.5);
}