.flight-extra-info-popup {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    z-index: 1052;
    width: 100%;
    border-radius: 0px;
    padding: 0px;
}

.popup-content-flight {
    background: #F4F6F9;
    padding: 32px;
    border-radius: 12px;
    width: 95%;
    height: 95%;
    overflow-y: scroll;
    max-width: none;
}

.popup-content-flight .close-popup {
    float: right;
    cursor: pointer;
    font-weight: bold;
    position: sticky;
    top: 0;
}

.popup-content-flight .close-popup img{
    width: 16px;
    height: 16px;
}

/* SKELETON ANIMATION */

.skeleton-block {
    background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.2s infinite linear;
    border-radius: 6px;
    margin-bottom: 10px;
}

.skeleton-line {
    height: 20px;
    width: 100%;
}

.skeleton-line.short {
    width: 60%;
}

.skeleton-box {
    padding: 20px;
}

.skeleton-blocks-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
}

.skeleton-block-wrapper {
    width: 48%;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* POPUP CONTENT */

.flight-extra-info-popup .text-bold-h2, .flight-info-wrapper .text-bold-h2 {
    font-weight: 700;
    font-size: 32px;
    letter-spacing: 0%;
}

.flight-extra-info-popup .text-bold-h3, .flight-info-wrapper .text-bold-h3{
    font-weight: 700;
    font-size: 24px;
    line-height: 140%;
}

.flight-extra-info-popup .text-semibold-h3, .flight-info-wrapper .text-semibold-h3{
    font-weight: 500;
    font-size: 22px;
    line-height: 140%;
}

.flight-extra-info-popup .text-regular-h4, .flight-info-wrapper .text-regular-h4{
    font-weight: 400;
    font-size: 18px;
    line-height: 140%;
    letter-spacing: 0%;
}

.flight-extra-info-popup .text-regular-p, .flight-info-wrapper .text-regular-p{
    font-weight: 400;
    font-size: 16px;
    line-height: 140%;
    letter-spacing: 0%;
}

.flight-extra-info-popup .grey, .flight-info-wrapper .grey{
    color: #585858;
}

.flight-info-header-container {
    display: flex;
    align-items: center;
    margin-top: 40px;
}

.flight-info-header-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.flight-info-title {
    font-family: Poppins;
    font-weight: 700;
    font-size: 32px;
    line-height: 42px;
    letter-spacing: 0%;
}

.flight-info-container {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 24px;
    margin-top: 30px;
}

.flight-main-info-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.flight-info-block {
    border-radius: 12px;
    width: 100%;
    min-height: 120px;
    background-color: #fff;
    padding: 32px;
}

.flight-info-btns {
    display: flex;
    align-items: center;
    gap: 10px;
}

.flight-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    gap: 16px;
}

.flight-info-top {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.flight-info-bottom {
    display: flex;
    align-items: center;
    gap: 8px;
}

.flight-info-dot {
    width: 4px;
    height: 4px;
    min-width: 4px;
    background-color: #585858;
    border-radius: 50%;
}

.flight-main-info-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.flight-info-center {
    display: flex;
}

.flight-info-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

p.flight-info-center-time {
    color: #B5B5C2;
    white-space: nowrap;
}

.flight-number-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.flight-number-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.flight-number-info-status {
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 16px;
    line-height: 140%;
    padding: 12px 18px;
    border-radius: 8px;
}

.flight-number-info-status.green {
    color: #3D7B50;
    background-color: #EAF5ED;
}

.flight-number-info-status.grey{
    color: #585858;
    background-color: #d9d9d9;
}

.flight-number-info-status.red{
    color: #BF3939;
    background-color: #FFEEF3;
}

.flight-number-info-status.blue {
    color: #306DDE;
    background-color: #E5EEFC;
}

.flight-number-info-status.orange {
    color: #D9822B;
    background-color: #FFF4E5;
}


.flight-arrivals-main-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.flight-arrivals-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 40px;
}

.flight-arrivals-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.flight-arrivals-info-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-content: space-between;
}

.flight-arrivals-info-block .flight-arrivals-info:first-child {
    border-right: 1px solid #B5B5C2;
    padding-right: 64px;
}

.flight-arrivals-info-block .flight-arrivals-info:nth-child(2) {
    padding-left: 64px;
}

.flight-arrivals-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.flight-airplane-image {
    background-color: #F9F9F9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-height: 200px;
    padding: 40px 20px;
}

.flight-airplane-image .image-block {
    height: 130px;
    width: 100%;
    border-radius: 6px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.flight-airplane-info-block {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.flight-weather-info-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flight-weather-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 8px;
}

.flight-weather-info-bottom {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
}

.flight-weather-info-block{
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.flight-weather-content {
    display: flex;
    align-items: flex-start;
    gap: 4px;
}

.flight-weather-content-wrapper{
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.flight-weather-temp {
    margin-left: auto;
}

.flight-statistic-info-block {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.flight-statistic-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.flight-statistic-content {
    display: grid;
    grid-template-columns: 1fr 3fr;
    justify-content: space-between;
}

.flight-statistic-content-left {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-right: 60px;
    border-right: 1px solid #B5B5C2;
}

.flight-statistic-content-right {
    padding-left: 60px;
}

.flight-statistic-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.flight-statistic-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0;
}

.flight-statistic-item .flight-statistic-label {
    width: 180px;
    flex-shrink: 0;
}

.flight-statistic-item .progress-bar {
    flex: 1;
    height: 26px;
    background-color: #F4F6F9;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: flex-start;
}

.flight-statistic-item .progress-fill {
    height: 100%;
    background-color: #97C7FC;
    border-radius: 6px;
}

.flight-statistic-item .progress-percent {
    width: 40px;
    text-align: right;
    font-weight: 500;
}

.flight-main-info-block .flight-info-date{
    white-space: nowrap;
}

.flight-main-info-block .flight-info-time{
    white-space: nowrap;
}

.service-code-fly .gradient-btn{
    margin: 15px 0px;
}

.gradient-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
}

.gradient-btn svg {
    width: 22px;
    height: 22px;
}

.gradient-text {
    background: linear-gradient(166.72deg, #306DDE, #9E63FF, #306DDE);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent;
    transition: background-position 0.8s ease;
}

.gradient-btn:hover .gradient-text {
    background-position: right center;
}

.gradient-btn svg stop {
    transition: stop-color 0.8s ease;
}

.gradient-btn:hover stop:nth-child(1) {
    stop-color: #9E63FF;
}

.gradient-btn:hover stop:nth-child(2) {
    stop-color: #306DDE;
}

.gradient-btn:hover stop:nth-child(3) {
    stop-color: #306DDE;
}

.show-airport-status-btn{
    margin-left: auto;
}

.popup-content-flight::-webkit-scrollbar {
    width: 10px;
}

.popup-content-flight::-webkit-scrollbar-button {
    display: none;
}

.popup-content-flight::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 10px;
}
.popup-content-flight::-webkit-scrollbar-track {
    background: transparent;
}

h3.segment-title{
    margin: 30px 0px 10px 0px;
}


@media (max-width: 1340px){
    .flight-extra-info-popup .text-bold-h2, .flight-info-wrapper .text-bold-h2{
        font-size: 24px;
    }
    
    .flight-extra-info-popup .text-bold-h3, .flight-info-wrapper .text-bold-h3{
        font-size: 20px;
    }
    
    .flight-extra-info-popup .text-semibold-h3, .flight-info-wrapper .text-semibold-h3{
        font-size: 18px;
    }
    
    .flight-extra-info-popup .text-regular-h4, .flight-info-wrapper .text-regular-h4{
        font-size: 16px;
    }
    
    .flight-extra-info-popup .text-regular-p, .flight-info-wrapper .text-regular-p{
        font-size: 14px;
    }

    .flight-main-info-section{
        gap: 18px;
    }

    .flight-info-container{
        gap: 18px;
    }

    .flight-info-block{
        padding: 26px;
    }

    .flight-statistic-info-block{
        gap: 30px;
    }

    .flight-info-container{
        grid-template-columns: 2.5fr 1fr;
    }

    .flight-airplane-image{
        padding: 20px;
    }

    .flight-statistic-content-right{
        padding-left: 30px;
    }

    .flight-statistic-content-left{
        padding-right: 30px;
    }

    .flight-arrivals-info-block .flight-arrivals-info:first-child{
        padding-right: 34px;
    }

    .flight-arrivals-info-block .flight-arrivals-info:nth-child(2){
        padding-left: 34px;
    }
}

@media (max-width: 1024px){
    .flight-extra-info-popup .text-bold-h3{
        font-size: 18px;
    }

    .flight-number-info-status{
        font-size: 14px;
    }

    .flight-extra-info-popup .text-semibold-h3{
        font-size: 16px;
    }

    .flight-statistic-item .progress-bar{
        height: 20px;
    }

    p.flight-info-center-time{
        font-size: 14px;
    }

    .flight-info-header-section{
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .flight-info-block{
        padding: 20px;
    }

    .flight-statistic-item .flight-statistic-label{
        width: 30%;
    }
}

@media (max-width: 900px){
    .flight-info-container {
        grid-template-columns: 1fr;
    }   

    .flight-statistic-item .progress-bar{
        height: 26px;
    }

    .flight-extra-info-popup .text-semibold-h3{
        font-size: 18px;
    }

    .flight-extra-info-popup .text-bold-h3{
        font-size: 20px;
    }

    .flight-airplane-image{
        max-height: 260px;
    }

    .flight-airplane-image .image-block{
        height: 200px;
    }

    .popup-content-flight{
        width: 100%;
        border-radius: 0px;
        height: 100%;
    }

    .popup-content-flight::-webkit-scrollbar {
        display: none;
    }
}

@media (max-width: 768px) {
    .flight-statistic-content{
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .flight-statistic-content-left{
        padding-right: 0px;
        border-right: none;
    }

    .flight-statistic-content-right{
        padding-left: 0px;
    }

    .flight-info-btns{
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .flight-info-btns .btn.btn-primary.rm{
        width: 100%;
    }

    .flight-main-info-block{
        flex-direction: column;
        align-items: flex-start;
    }

    .flight-info-center{
        gap: 30px;
    }

    .flight-info-center img{
        transform: rotate(90deg);
    }

    .flight-arrivals-info{
        gap: 16px;
    }

    .flight-arrivals-info-block{
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .flight-arrivals-info-block .flight-arrivals-info:first-child{
        padding-right: 0px;
        border-right: none;
    }

    .flight-arrivals-info-block .flight-arrivals-info:nth-child(2){
        padding-left: 0px;
    }

    .popup-content-flight{
        padding: 16px;
    }

    .flight-statistic-item .flight-statistic-label{
        width: 30%;
    }

}
