.calendar .days-select {
    padding: 10px 0;
    margin-bottom: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

@media (min-width: 768px) {
    .calendar .days-select {
        margin-bottom: 20px;
    }
}

.calendar .days-select > * {
    flex: 1 1 0;
    min-width: 200px;
}

.calendar .days-select span {
    margin-right: 10px;
}

.calendar .days-select .custom-select {
    margin-bottom: 5px;
}

.calendar .days-select .custom-select__option {
    background: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.calendar .custom-select__option svg {
    flex-shrink: 0;
    margin-bottom: 0;
}

.calendar .options {
    padding: 20px;
    background: #f1f1f1;
}

.filter-modal.calendar {
    overflow: auto;
}

.filter-modal.calendar .isl-calendar-picker {
    padding-top: 20px;
}

.filter-modal.calendar .isl-calendar-picker div.month {
    padding-top: 10px;
}

.options .sections .container {
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.options .sections .travel-section {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    border: 1px solid #ccc;
    border-radius: 10px;
}

.options .sections .travel-section.fly-sales {
    display: none;
}

.options .sections .travel-section.current {
    border-color: #000 !important;
    background: #fff !important;
}

.options .travel-section h2 {
    color: #666 !important;
    font-size: 16px !important;
    margin-bottom: 0 !important;
    padding: 0px;
}

.options .travel-section a {
    padding: 0px;
    display: block;
    width: 100%;
    height: 100%;
}

.options .travel-section h2 {
    padding: 0px;
}

.options .travel-section.current h2 {
    color: #000 !important;
}

.calendar .custom-select svg {
    position: absolute;
    z-index: 1;
    margin-top: 8px;
    margin-left: 8px;
}
.calendar .custom-select__option.custom-select__option--value {
    padding-left: 31px;
}

.calendar .custom-select.fix-periods {
    display: none;
}

@media (max-width: 991px) {
    .options .sections .container {
        flex-direction: column;
        gap: 10px;
    }

    .options .sections .travel-section {
        flex: 1 1 100%;
        width: 100%;
    }
}

/* 17.4.2026 UPDATE */

/* PLANE ICONS FIX */
#calendarwrapper .type-icons img{
    position: absolute;
    right: 0px;
    top: 0px
}
#calendarwrapper .type-icons img.plane-a,
#calendarwrapper .type-icons img.plane-d{
    display: none;
}

#calendarwrapper .first-selected.chosen .type-icons img.plane-a{
    display: block;
    right: unset;
    left: 0px;
}

#calendarwrapper .last-selected.chosen .type-icons img.plane-d{
    display: block;
    top: unset;
    bottom: 0px;
}

/* FIXED DATES MENU DISPLAY UPDATE */

#calendarwrapper .fixed-offers {
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.25);
    padding: 0 5px;
    white-space: nowrap;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

#calendarwrapper .fixed-offers div {
    padding: 15px 10px;
    margin: 5px auto;
}

/* CALENDAR WINDOW SIZING FIX */

.filter-modal.calendar div.month,
ul.calendar-days li.inactiveNotSameMonth {
    min-height: unset !important;
}

ul.calendar-days li.inactiveNotSameMonth {
    height: unset !important;
    background: #fff !important;
    border: 1px solid #fff !important;
    color: #eee !important;
}

@media (min-width: 768px) {
    .filter-modal.calendar {
        position: fixed;
        margin-left: unset;
        width: 960px;
        max-width: 90%;
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (min-width: 1200px) {
    .filter-modal.calendar {
        width: 1200px;
    }
}

@media (max-width: 479px) {
    .filter-modal.calendar .isl-calendar-picker {
        padding: 5px 10px;
    }
}

/* TRAVEL SECTION BUTTONS FIX */

@media (max-width: 991px) {
    .travel-section,
    .travel-section.currrent {
        padding: 10px !important; /* Need to remove inline important for .current */
    }
}

/* COSMETIC TOUCHES */

.filter-modal.calendar {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .filter-modal .back {
        margin-bottom: 15px;
        padding: 0;
        padding-right: 10px;
    }

    .filter-modal .back svg {
        margin-bottom: 0;
    }
}

@media (max-width: 479px) {
    .calenda-bottom-buttons > div {
        flex-direction: column !important;
    }

    .calenda-bottom-buttons > div > div {
        margin-top: 10px;
    }
}

/* TOOLTIP */

.has-tooltip {
    position: relative;
}

.has-tooltip:hover {
    cursor: help;
}

.has-tooltip:hover .tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.tooltip {
    position: absolute;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    padding: 5px 10px;
    background: #fff;
    border-radius: 4px;
    border: 1px solid #4f6600;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
    text-align: center;
    pointer-events: none;
    opacity: 0;
    transition:
        opacity 0.15s ease-in-out,
        transform 0.15s ease-in-out;
    z-index: 10;
    white-space: nowrap;
}

.tooltip p {
    margin-bottom: 0;
    text-align: center;
    font-size: 14px;
    font-weight: 400;
}
