﻿.btn-view-more {
    background-color: #3563ed;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    min-width: 200px;
}

.btn-view-more:hover {
    background-color: #0056b3;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

.btn-view-more:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
    transform: none;
}

/* Skeleton Styles */
.skeleton-item {
    pointer-events: none;
}

.skeleton-box {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.skeleton-item .airline-logo-container.skeleton-box {
    border: none;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

.service-item {
    transition: transform 0.2s ease;
}

    .service-item::after {
        content: none !important;
    }

    .service-item::before {
        content: none !important;
    }

.service-item-image img {
    height: 180px;
    object-fit: cover;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-item-content {
    padding: 16px !important;
}

.service-item h3.service-item-title {
    font-size: 1.25rem !important;
    color: #3563ed !important;
}

.service-item-content .service-item-des {
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
    color: #666666;
}

.service-item:hover {
    cursor: pointer !important;
    background: initial !important;
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(21, 101, 192, 0.15), 0 1.5px 6px rgba(0, 0, 0, 0.08);
}

    .service-item:hover img {
        transform: scale(1.07);
    }

.service-item h3.service-item-title {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.3;
    min-height: 2.6em;
    max-height: 2.6em;
}

@media (max-width: 767px) {
    .service-item h3.service-item-title {
        font-size: .75rem !important;
        line-height: 1.3;
        min-height: 2.6em;
        max-height: 2.6em;
        white-space: normal;
        word-break: break-word;
    }
}

@media (max-width: 768px) {
    .service-item-image img {
        height: 120px;
    }
}

@media (max-width: 992px) {
    .service-item-image img {
        height: 150px;
    }

    .service-item-content .service-item-des {
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        min-height: 2.5em;
        max-height: 2.5em;
        font-size: .75rem !important;
    }
}

.airline-logo {
    max-height: 36px;
    max-width: 36px;
}

.filter-by-airline img {
    max-height: 20px;
}

.mh-\[312px\] {
    max-height: 312px;
}

.search-top-slide-item.deactive {
    opacity: 0.6;
}

.loading-farerule {
    height: 6px;
    background-color: greenyellow;
    margin: 5px 50px 5px 0;
}

.search-item-group + .search-item-group {
    border-top: 1px dotted #BCBCBC;
}

.filter-selected:not(.hidden) + .search-item-group {
    border-top: 1px dotted #BCBCBC !important;
}

.baggage-detail span {
    display: block;
}

    .baggage-detail span + span {
        margin-top: 3px;
    }

.view-more-result {
    margin: 10px;
    display: flex;
    justify-content: center
}

    .view-more-result button {
        padding: 5px 10px;
        background: #fff;
        border-radius: 24px;
        color: #155ED2;
        border: 1px solid #155ED2;
        font-size: 1rem;
        width: 250px;
    }

        .view-more-result button:hover {
            background: #155ED2;
            color: #fff;
        }

.search-result-item .search-result-item-choice button.button-select-result-item::after {
    background-image: url(/images/icon-checked.png) !important;
}

.modal {
    display: flex;
    position: fixed; /* Stay in place */
    z-index: 50; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.65); /* Black w/ opacity */
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.modal-header h2 {
    font-weight: 600;
    font-size: 20px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
}

.modal-footer {
    display: flex;
    justify-content: right;
    padding: 10px;
}

.modal-body {
    padding: 10px 10px;
}

.modal .base-button {
    border: 1px solid #F37121;
    border-radius: 6px;
    padding: 10px 16px;
    background-color: #fff;
    color: #F37121;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    width: 150px;
}

.search-result-item .search-result-item-content::-webkit-scrollbar {
    height: 10px;
}

.search-result-item .search-result-item-content::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px grey;
    border-radius: 6px;
}

.search-result-item .search-result-item-content::-webkit-scrollbar-thumb {
    background: #bdbcbc;
    border-radius: 10px;
}

    .search-result-item .search-result-item-content::-webkit-scrollbar-thumb:hover {
        background: #515252;
    }

.search-left .search-item.hidden + .search-item {
    border: 0 !important;
    padding-top: 0 !important;
}

#div-fare-rule-block .modal-content {
    max-width: 860px;
    padding: 10px
}

.view-more summary::marker {
    content: "";
}

.sort {
    width: 25%;
}


.search-result-block {
    padding-top: 30px;
}


@media screen and (max-width: 1024px) {
    .search-result-item-head-content vr {
        display: none;
    }

    .sort {
        width: 100%;
    }

    .search-result-block {
        padding-top: 0px;
    }
}

.flight-deal-item {
    cursor: pointer;
    transition: transform 0.2s ease;
}

    .flight-deal-item:hover {
        transform: translateY(-2px);
    }

.flight-deal-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    padding: 16px;
    transition: box-shadow 0.2s ease;
}

    .flight-deal-card:hover {
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    }

.flight-deal-header {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
}

.flight-date {
    background: #3563ed;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.flight-deal-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-top: 8px;
}

.airline-logo-container {
    flex-shrink: 0;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.airline-logo-image {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.flight-info {
    flex: 1;
    min-width: 0;
}

.route-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #3563ed;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.airline-details {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 4px;
    line-height: 1.4;
}

.airline-name {
    font-weight: 500;
}

.operated-by {
    color: #999;
}

.flight-type {
    font-size: 0.8rem;
    color: #28a745;
    font-weight: 500;
    margin-bottom: 8px;
}

.flight-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

    .flight-tags span {
        padding: 2px 6px;
        font-size: 0.7rem;
        font-weight: 600;
        border-radius: 4px;
        text-transform: uppercase;
    }

.tag-vfr {
    background: #e3f2fd;
    color: #1976d2;
    border: 1px solid #1976d2;
}

.tag-lbr {
    background: #fff3e0;
    color: #f57c00;
    border: 1px solid #f57c00;
}

.tag-yth {
    background: #f3e5f5;
    color: #7b1fa2;
    border: 1px solid #7b1fa2;
}

.tag-best {
    background: #e8f5e8;
    color: #2e7d32;
    border: 1px solid #2e7d32;
}

.price-section {
    flex-shrink: 0;
    text-align: right;
    margin-top: 8px;
}

.price-label {
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 2px;
}

.price-amount {
    font-size: 1.1rem;
    font-weight: 700;
    color: #f57c00;
    line-height: 1.2;
}

/* Responsive */
@media (max-width: 768px) {
    .flight-deal-content {
        gap: 8px;
    }

    .airline-logo-container {
        width: 40px;
        height: 40px;
    }

    .airline-logo-image {
        width: 28px;
        height: 28px;
    }

    .route-title {
        font-size: 1rem;
    }

    .airline-details {
        font-size: 0.8rem;
    }

    .price-amount {
        font-size: 1rem;
    }

    .flight-date {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .flight-deal-card {
        padding: 12px;
    }

    .route-title {
        font-size: 0.95rem;
    }

    .airline-details {
        font-size: 0.75rem;
    }

    .flight-tags span {
        font-size: 0.65rem;
    }
}
