/* some style from boostrap v5.1.3 */
html {
    font-size: 16px;
}

.h1,
h1 {
    font-size: calc(1.375rem + 1.5vw);
}

.h2,
h2 {
    font-size: calc(1.325rem + .9vw);
}

.h3,
h3 {
    font-size: calc(1.3rem + .6vw);
}

.h4,
h4 {
    font-size: calc(1.275rem + .3vw);
}

.h5,
h5 {
    font-size: 1.25rem;
}

.mt-2 {
    margin-top: .5rem !important;
}

.mt-3 {
    margin-top: 1rem !important;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

.mb-1 {
    margin-bottom: 0.25rem !important;
}

.mb-2 {
    margin-bottom: 0.5rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.me-1 {
    margin-right: 0.25rem !important;
}

.me-2 {
    margin-right: 0.5rem !important;
}

.me-3 {
    margin-right: 1rem !important;
}

.me-4 {
    margin-right: 1.5rem !important;
}

.me-5 {
    margin-right: 3rem !important;
}

.ms-1 {
    margin-left: 0.25rem !important;
}

.ms-2 {
    margin-left: 0.5rem !important;
}

.ms-3 {
    margin-left: 1rem !important;
}

.ms-4 {
    margin-left: 1.5rem !important;
}

.ms-5 {
    margin-left: 3rem !important;
}

.align-items-center {
    align-items: center !important;
}

.justify-content-between {
    justify-content: space-between !important;
}

.d-flex {
    display: flex !important;
}

.w-100 {
    width: 100% !important;
}

.text-end {
    text-align: right !important;
}

.input-group {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
}

.input-group>.form-control,
.input-group>.form-select {
    position: relative;
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
}

.input-group-text {
    display: flex;
    align-items: center;
    padding: .375rem .75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    text-align: center;
    white-space: nowrap;
    background-color: #e9ecef;
    border: 1px solid #ced4da;
    border-radius: .25rem;
}

.input-group>:not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback) {
    margin-left: -1px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.btn-primary {
    color: #fff;
    background-color: #0099ff;
    border-color: #0099ff;
}

.btn-outline-primary {
    color: #0099ff;
    background-color: transparent;
    border-color: #0099ff;
}

.text-primary {
    color: #0099ff;
}

.text-secondary {
    color: #6c757d;
}

.bg-info-subtle {
    background-color: #e6f7ff;
}

.rounded {
    border-radius: .25rem !important;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

.btn {
    background-color: transparent;
}

.btn:focus,
.btn:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 .25rem rgba(13, 110, 253, .25);
}

.btn.active.focus,
.btn.active:focus,
.btn.focus,
.btn:active.focus,
.btn:active:focus,
.btn:focus {
    outline: 0;
    outline-offset: 0;
}

.btn-primary {
    color: #fff;
    background-color: #0099ff;
    border-color: #0099ff;
}

.btn-outline-primary {
    color: #0099ff;
    border-color: #0099ff;
}

.btn-light {
    color: #000;
    background-color: #f8f9fa;
    border-color: #f8f9fa;
}

.btn-light:focus {
    color: #000;
    background-color: #f9fafb;
    border-color: #f9fafb;
    box-shadow: 0 0 0 .25rem rgba(211, 212, 213, .5);
}

.btn-check:active+.btn-light:focus,
.btn-check:checked+.btn-light:focus,
.btn-light.active:focus,
.btn-light:active:focus,
.show>.btn-light.dropdown-toggle:focus {
    outline: 0;
    box-shadow: 0 0 0 .25rem rgba(211, 212, 213, .5);
}

.dropdown-menu {
    min-width: 10rem;
    padding: .5rem 0;
    font-size: 1rem;
    color: #212529;
    border-radius: .25rem;
    box-shadow: none;
}

.dropdown-menu>li>a {
    width: 100%;
    padding: .25rem 1rem;
    color: #212529;
    text-align: inherit;
    text-decoration: none;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
}

.dropdown-menu>li>a:focus,
.dropdown-menu>li>a:hover {
    color: #1e2125;
    background-color: #e9ecef;
}

.dropdown-menu>li>a.active,
.dropdown-menu>li>a:active {
    color: #fff;
    text-decoration: none;
    background-color: #0099ff;
}

.icon {
    display: inline-block;
    line-height: 1;
    font-style: normal;
    font-weight: normal;
    font-size: inherit;
    font-variant: normal;
    text-transform: none;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 100% 100%;
    aspect-ratio: 1/1;
    height: 1.2em;
}

.icon-plane {
    background-image: url('../icon/icon-plane.svg');
}

.icon-ship {
    background-image: url('../icon/icon-ship.svg');
}


/** page styles */


.search-box {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.trip-date .form-control{
    height: 2.625rem;
}
.form-control:focus {
    outline: none;
    box-shadow: none;
}
.search-btn {
    height: 2.625rem;
}
.datepicker table {
    width: 100%;
}
.datepicker-dropdown:before, .datepicker-dropdown:after {
    display: none;
}
.datepicker-dropdown .clear {
    border: 1px solid #ccc;
    font-weight: normal;
}
.datepicker table tr td span.focused, .datepicker table tr td span:hover {
    background-color: #d3edff;
}
.datepicker table tr td span.focused, .datepicker table tr td span.active.active {
    background-color: #0099ff;
    color: #fff;
    border-color: #0099ff;
}
.datepicker table tr td span.disabled, .datepicker table tr td span.disabled:hover {
    background: #cdcdcd;
    color: #777;
}

.filter-state {
    padding-left: 15px;
    padding-right: 15px;
}

.filter-section {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
}

.result-card {
    margin-bottom: 15px;
    height: 160px;
    border: 1px solid #eee;
}
.result-card__content {
    height: 100%;
    flex: 1 1 70%;
    padding: 15px;
}
.result-card .row {
    display: flex;
    flex-wrap: wrap;
    height: 100%;
}
.result-card img {
    height: 100%;
    aspect-ratio: 378/250;
    background-color: #eeeeee;
}
.result-card__middle {
    flex: 1 1 30%;
    border-right: 1px solid #e6f7ff;
    margin-right: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.result-card__middle h4{
    font-size: calc(1.275rem + 0.1vw);
}
.result-card__middle .bi-three-dots {
    margin-left: 3px;
    margin-right: 3px;
}
.result-card__tags {
    display: flex;
}
.result-card__tag {
    padding: 1px 6px;
    border-radius: 12px;
    font-size: 14px;
    margin-right: 5px;
    display: flex;
    align-items: center;
    white-space: nowrap;
}
.result-card__tag.--outline {
    background-color: transparent;
    border: 1px solid #93d2f3de;
}

.result-card__tag .icon {
    flex-shrink: 0;
}
.result-card__tag span {
    flex: 0 1 auto;
}
.result-card__right {
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
}
.result-card__date-range {
    font-size: 14px;
    color: #9a9a9a;
    justify-content: space-between;
}
.result-card__date-range i{
    color: #101010;
}
.result-card__days span {
    display: inline-block;
    width: 2.3em;
    text-align: right;
}
.result-card__price {
    align-items: flex-end;
    justify-content: end;
    line-height: 2;
}

.result-card__real-price {
    color: #9a9a9a;
    font-size: 1em;
    font-weight: normal;
}
.result-card__real-price span {
    color: #0086f6;
    font-size: 1.2em;
    font-weight: bold;
}

.result-card__original-price {
    color: #999;
    font-size: 1.2em;
    text-decoration: line-through;
}
.result-card__actions {
    justify-content: space-between;
}
.result-card__actions .btn {
    padding: 3px 10px;
    width: 90px;
    text-align: center;
}
.ticket-loading .spin, .btn-load-more .spin {
    display: inline-block;
}


.filter-state__tag {
    background: #e6f7ff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    margin-right: 5px;
}
.filter-state__tag i {
    padding-left: 0.3rem;
    color: #6c757d;
    cursor: pointer;
}
.filter-state__tag i:hover {
    color: #0086f6;
}

.filter-state {
    padding-top: 0.375rem;
    padding-bottom: 0.375rem;
}
.filter-state__title {
    /* margin-right: 3em; */
}
.filter-state__right .dropdown {
    margin-left: 30px;
}
.filter-state__clear {
    color: #00000066;
    cursor: pointer;
}
.filter-state__clear i {
    padding-left: 0.3rem;
    color: #00000066;
}
.filter-state__clear:hover {
    color: #00000088;
}
.filter-state__clear:hover i {
    color: #00000088;
}

/* 筛选器相关样式 */
.filter-group {
    margin-bottom: 15px;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    cursor: pointer;
    color: #333;
}

.filter-header:hover {
    color: #0086f6;
}

.filter-content {
    padding: 8px 0;
}

.filter-item {
    padding: 8px 12px;
    cursor: pointer;
    color: #666;
    display: block;
    text-decoration: none;
}

.filter-item:hover {
    background-color: #f5f9ff;
    color: #0086f6;
    text-decoration: none;
}

.filter-item.active {
    color: #0086f6;
    background-color: #f5f9ff;
    text-decoration: none;
}

.datepicker-months .month {
    width: 22%;
    margin: 1.5%;
}

.input-date {
    background-color: #fff !important;
}

.filter-header .bi-chevron-down {
    transition: transform 0.3s ease;
}

.filter-header.collapsed .bi-chevron-down {
    transform: rotate(-90deg);
}

/* 搜索框相关样式 */
.destination-input {
    position: relative;
}

.destination-input .form-control {
    padding: 0.375rem 30px 0.375rem 0.75rem;
    height: 2.625rem;
}

.destination-input .bi-chevron-down {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.destination-input .bi-x {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    display: none;
}

.destination-input .form-control:not(:placeholder-shown) + .bi-x {
    display: block;
}

/* jQuery UI Menu 自定义样式 */
.ui-menu {
    max-height: 350px;
    overflow-y: auto;
    width: 100%;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.ui-menu .ui-menu-item-wrapper {
    padding: 8px 12px;
}

.ui-menu .ui-state-active {
    margin: 0;
    background-color: #f5f9ff;
    color: #0086f6;
    border: none;
}

.ui-menu .ui-menu-divider {
    margin: 5px 0;
    height: 0;
    font-size: 0;
    line-height: 0;
    border-width: 1px 0 0 0;
}

/* 创建旋转动画效果 */
.spin {
  animation: spin 1s infinite linear;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
