/*---------------- HOTEL RESULT CARD ----------------*/

.tour-result-card {
    width: 100%;
    padding: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    background-color: #fff;
}

.tour-result-card .img-tour {
    width: 250px;
    height: 177px;
    object-fit: cover;
    border-radius: 5px;
}

.img-tour-wrapper {
    position: relative;
    width: 250px;
    height: 177px;
    background-color: #f5f5f5;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.img-tour-default {
    width: 64px;
    height: 64px;
    margin-bottom: 40px;
    object-fit: contain;
}

.img-tour-default-text {
    position: absolute;
    top: 60%;
    font-weight: 500;
    font-size: 14px;
    color: #6d6d6d;
}

.tour-result-title h1 {
    font-size: 20px;
    font-weight: bold;
    color: var(--theme-primary);
    margin-top: 0px;
    margin-bottom: 0px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    text-wrap: wrap;
}

.tour-result-title i {
    font-size: 10px;
    margin-top: 1px;
}

.tour-result-title p {
    font-size: 11px;
    color: #6d6d6d;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    text-wrap: wrap;
}

.tour-result-detail {
    margin-top: 10px;
    font-weight: 800;
    max-width: 626px;
}

.tour-result-include-wrapper {
    position: relative;
    max-height: 22px;
    overflow: hidden;
}

.tour-result-include-wrapper::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 24px;
    background: linear-gradient(to right, transparent, white 60%);
    pointer-events: none;
    display: none;
}

.tour-result-include-wrapper.show-dots::after {
    display: block;
}

.tour-result-include {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.tour-result-badges {
    padding: 3px 5px 0px 5px;
    border: 1px solid var(--theme-primary);
    margin-right: 5px;
    margin-bottom: 5px;
    border-radius: 3px;
    background: #fff;
    max-width: 90px;
}

.tour-result-badges p {
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tour-result-detail i {
    font-size: 9px;
    color: black;
    padding-bottom: 4px;
    margin-right: 5px;
}

.tour-result-detail p {
    font-size: 11px;
    font-weight: 500;
    margin-bottom: 0;
}

.tour-result-availability {
    margin-top: auto;
    font-weight: 500;
    font-size: 12px;
    color: var(--theme-primary);
}

.tour-result-border {
    border-right: 1px solid #e7e7e7;
    margin: -10px 10px;
}

.tour-result-price-booking {
    margin-top: 10px;
}

.tour-result-badge-star {
    background-color: #c0c0c0;
    color: #ffffff;
    font-size: 9px;
    height: 20px;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
    margin-top: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

.tour-result-price {
    width: 150px;
    height: 100%;
}

.tour-result-price span {
    color: var(--theme-primary);
    font-weight: bold;
    font-size: 20px;
}

.tour-result-price h6 {
    font-size: 10px;
    text-align: start;
    margin: 0px 0px -4px 0px;
    font-weight: bold;
    color: #6d6d6d;
}

.tour-result-price p {
    font-size: 10px;
    font-weight: bold;
    line-height: 6px;
    color: #6d6d6d;
}

.tour-result-price a {
    background-color: var(--theme-primary);
    color: #fff !important;
    margin-top: 40px;
    border-color: var(--theme-primary);
    border-radius: 0px;
    transition: all 0.3s;
    font-size: 14px;
    padding: 7px 20px;
    margin-left: 18px;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    border: 1px solid var(--theme-primary);
    font-weight: 500;
}

.tour-result-price a:hover {
    background-color: #fff !important;
    color: var(--theme-primary) !important;
    border: 1px solid var(--theme-primary) !important;
}

.tour-load-more {
    background-color: var(--theme-primary);
    color: #fff;
    border-color: var(--theme-primary);
    border-radius: 0px;
    transition: all 0.3s;
    font-size: 14px;
    padding: 4px 25px;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    border: 1px solid var(--theme-primary);
    font-weight: 500;
}

.tour-load-more:hover {
    background-color: #fff;
    color: var(--theme-primary);
    border: 1px solid var(--theme-primary);
}

.tour-result-rating {
    margin: 0px 0px 10px 0px;
    font-size: 13px;
    align-items: center;
    display: flex;
}

.tour-result-rating h4 {
    margin: 0px;
}

.tour-result-rating i {
    color: #ffd700;
    font-size: 12px;
}

.tour-result-type {
    width: 22%;
    margin-top: 8px;
}

.tour-result-type i {
    font-size: 19px;
    color: var(--theme-primary);
}

.tour-result-type span {
    font-size: 10px;
    line-height: 12px;
    color: #5d646d;
}

.tour-result-type p {
    font-size: 11px;
    font-weight: bold;
    color: #111827;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    text-wrap: wrap;
}

.tour-result-price-range {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
}

.tour-result-price-range-label {
    font-size: 12px;
    margin-left: 5px;
    display: flex;
    align-items: center;
    text-align: center;
}

.tour-result-price-range button {
    background-color: transparent;
    color: var(--theme-primary);
    font-weight: 500;
    font-size: 14px;
}

.tour-result-rooms-price-badge-refund {
    position: absolute;
    top: 20px;
    right: 0;
    background-color: #d4edda;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    z-index: 10;
}

.tour-result-rooms-price-badge-not-refund {
    position: absolute;
    top: 20px;
    right: 0;
    background-color: #f8d7da;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    z-index: 10;
}

.tour-result-rooms-price-badge-refund h4 {
    margin: 0;
    font-size: 11px;
    padding-top: 2px;
}

.tour-result-rooms-price-badge-not-refund h4 {
    margin: 0;
    font-size: 11px;
    padding-top: 2px;
}
.tour-result-desc-container {
    width: 100%;
}

@media (min-width: 768px) and (max-width: 1024px) {
    .tour-result-card .img-hotel,
    .img-tour-wrapper {
        width: 200px;
    }
    .tour-result-card .img-tour {
        width: 210px;
    }
    .tour-result-price {
        width: 130px;
    }
    .tour-result-desc-container {
        width: 285px;
    }
    .tour-result-price a {
        margin-top: 35px;
    }
    .tour-result-border {
        margin: -10px 10px;
    }
    .tour-result-rating {
        margin: 0px 0px 5px 0px;
    }
    .tour-result-type {
        width: 52%;
    }
}
/*---------------- END HOTEL RESULT CARD ----------------*/

/* Badge ke-5 menjadi More + */
.tour-result-include .tour-result-badges:nth-child(5) {
    width: 50px;
    background: #ebebeb;
    color: #111827;
    font-weight: bold;
    cursor: pointer;
    border-style: solid;
    border-width: 1px;
    border-color: var(--theme-primary, #ca262c);
    margin-right: 5px;
    margin-bottom: 5px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    max-width: 90px;
    transition: background 0.2s, color 0.2s;
}
.tour-result-include .tour-result-badges:nth-child(5) i {
    display: none;
}
.tour-result-include .tour-result-badges:nth-child(5) p {
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #111827;
    position: relative;
    visibility: hidden; /* Sembunyikan teks asli */
}
.tour-result-include .tour-result-badges:nth-child(5) p::after {
    content: "More +";
    display: inline;
    position: absolute;
    left: 0;
    width: 100%;
    visibility: visible;
    color: #4f4f4f;
}
.tour-result-include .tour-result-badges:nth-child(5) p::before {
    content: "";
    display: none;
}

.tour-result-include .tour-result-badges:nth-child(n + 6) {
    display: none !important;
}

/*---------------- SKELETON FILTER HOTEL RESULT ----------------*/

.search-tour-clear-filter {
    background-color: transparent;
    border: none;
    color: var(--theme-primary);
    font-size: 14px;
    font-weight: 600;
    padding: 0px 10px;
}

.txt-transit-idr {
    color: #6d6d6d;
    font-weight: 600;
    font-size: 14px;
}

:root {
    --loading-grey: #e5e7eb;
    --border-color: #d1d5db;
    --text-color: #374151;
}

.filter-container {
    max-width: 280px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.skeleton-filter-title {
    width: 50px;
    height: 16px;
    border-radius: 4px;
    background-color: var(--loading-grey);
    animation: loading 0.8s infinite ease-in-out;
    background: linear-gradient(
            100deg,
            rgba(255, 255, 255, 0) 40%,
            rgba(255, 255, 255, 0.5) 50%,
            rgba(255, 255, 255, 0) 60%
        )
        var(--loading-grey);
    background-size: 200% 100%;
    background-position-x: 180%;
}

.skeleton-clear-btn {
    width: 35px;
    height: 14px;
    border-radius: 4px;
    background-color: var(--loading-grey);
    animation: loading 0.8s infinite ease-in-out;
    background: linear-gradient(
            100deg,
            rgba(255, 255, 255, 0) 40%,
            rgba(255, 255, 255, 0.5) 50%,
            rgba(255, 255, 255, 0) 60%
        )
        var(--loading-grey);
    background-size: 200% 100%;
    background-position-x: 180%;
}

.filter-section {
    margin-bottom: 24px;
}

.skeleton-section-title {
    width: 120px;
    height: 18px;
    border-radius: 4px;
    background-color: var(--loading-grey);
    margin-bottom: 16px;
    animation: loading 0.8s infinite ease-in-out;
    background: linear-gradient(
            100deg,
            rgba(255, 255, 255, 0) 40%,
            rgba(255, 255, 255, 0.5) 50%,
            rgba(255, 255, 255, 0) 60%
        )
        var(--loading-grey);
    background-size: 200% 100%;
    background-position-x: 180%;
}

.skeleton-checkbox-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.skeleton-checkbox {
    width: 18px;
    height: 18px;
    border-radius: 3px;
    background-color: var(--loading-grey);
    flex-shrink: 0;
    animation: loading 0.8s infinite ease-in-out;
    background: linear-gradient(
            100deg,
            rgba(255, 255, 255, 0) 40%,
            rgba(255, 255, 255, 0.5) 50%,
            rgba(255, 255, 255, 0) 60%
        )
        var(--loading-grey);
    background-size: 200% 100%;
    background-position-x: 180%;
}

.skeleton-checkbox-label {
    height: 16px;
    border-radius: 4px;
    background-color: var(--loading-grey);
    animation: loading 0.8s infinite ease-in-out;
    background: linear-gradient(
            100deg,
            rgba(255, 255, 255, 0) 40%,
            rgba(255, 255, 255, 0.5) 50%,
            rgba(255, 255, 255, 0) 60%
        )
        var(--loading-grey);
    background-size: 200% 100%;
    background-position-x: 180%;
}

.skeleton-checkbox-label.short {
    width: 80px;
}

.skeleton-checkbox-label.medium {
    width: 110px;
}

.skeleton-checkbox-label.long {
    width: 100px;
}

.skeleton-more-btn {
    width: 100%;
    height: 36px;
    border-radius: 6px;
    background-color: var(--loading-grey);
    margin-top: 8px;
    animation: loading 0.8s infinite ease-in-out;
    background: linear-gradient(
            100deg,
            rgba(255, 255, 255, 0) 40%,
            rgba(255, 255, 255, 0.5) 50%,
            rgba(255, 255, 255, 0) 60%
        )
        var(--loading-grey);
    background-size: 200% 100%;
    background-position-x: 180%;
}

.skeleton-range-container {
    margin-bottom: 16px;
}

.skeleton-range-values {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.skeleton-range-value {
    width: 20px;
    height: 16px;
    border-radius: 4px;
    background-color: var(--loading-grey);
    animation: loading 0.8s infinite ease-in-out;
    background: linear-gradient(
            100deg,
            rgba(255, 255, 255, 0) 40%,
            rgba(255, 255, 255, 0.5) 50%,
            rgba(255, 255, 255, 0) 60%
        )
        var(--loading-grey);
    background-size: 200% 100%;
    background-position-x: 180%;
}

.skeleton-range-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background-color: var(--loading-grey);
    margin-bottom: 8px;
    animation: loading 0.8s infinite ease-in-out;
    background: linear-gradient(
            100deg,
            rgba(255, 255, 255, 0) 40%,
            rgba(255, 255, 255, 0.5) 50%,
            rgba(255, 255, 255, 0) 60%
        )
        var(--loading-grey);
    background-size: 200% 100%;
    background-position-x: 180%;
}

.skeleton-range-label {
    width: 100px;
    height: 14px;
    border-radius: 4px;
    background-color: var(--loading-grey);
    animation: loading 0.8s infinite ease-in-out;
    background: linear-gradient(
            100deg,
            rgba(255, 255, 255, 0) 40%,
            rgba(255, 255, 255, 0.5) 50%,
            rgba(255, 255, 255, 0) 60%
        )
        var(--loading-grey);
    background-size: 200% 100%;
    background-position-x: 180%;
}

.skeleton-star-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.skeleton-filter-star {
    width: 60%;
    height: 16px;
    border-radius: 6px;
    background-color: var(--loading-grey);
    animation: loading 0.8s infinite ease-in-out;
    background: linear-gradient(
            100deg,
            rgba(255, 255, 255, 0) 40%,
            rgba(255, 255, 255, 0.5) 50%,
            rgba(255, 255, 255, 0) 60%
        )
        var(--loading-grey);
    background-size: 200% 100%;
    background-position-x: 180%;
}

.skeleton-star-count {
    width: 12px;
    height: 14px;
    border-radius: 3px;
    background-color: var(--loading-grey);
    animation: loading 0.8s infinite ease-in-out;
    background: linear-gradient(
            100deg,
            rgba(255, 255, 255, 0) 40%,
            rgba(255, 255, 255, 0.5) 50%,
            rgba(255, 255, 255, 0) 60%
        )
        var(--loading-grey);
    background-size: 200% 100%;
    background-position-x: 180%;
}

@keyframes loading {
    0% {
        background-position-x: 180%;
    }

    100% {
        background-position-x: -20%;
    }
}

/* Stagger animation delays for more natural loading */
.skeleton-checkbox-item:nth-child(1) .skeleton-checkbox,
.skeleton-checkbox-item:nth-child(1) .skeleton-checkbox-label {
    animation-delay: 0.1s;
}

.skeleton-checkbox-item:nth-child(2) .skeleton-checkbox,
.skeleton-checkbox-item:nth-child(2) .skeleton-checkbox-label {
    animation-delay: 0.2s;
}

.skeleton-checkbox-item:nth-child(3) .skeleton-checkbox,
.skeleton-checkbox-item:nth-child(3) .skeleton-checkbox-label {
    animation-delay: 0.3s;
}

.skeleton-checkbox-item:nth-child(4) .skeleton-checkbox,
.skeleton-checkbox-item:nth-child(4) .skeleton-checkbox-label {
    animation-delay: 0.4s;
}

.skeleton-checkbox-item:nth-child(5) .skeleton-checkbox,
.skeleton-checkbox-item:nth-child(5) .skeleton-checkbox-label {
    animation-delay: 0.5s;
}

.skeleton-star-item:nth-child(1) .skeleton-filter-star,
.skeleton-star-item:nth-child(1) .skeleton-star-count {
    animation-delay: 0.1s;
}

.skeleton-star-item:nth-child(2) .skeleton-filter-star,
.skeleton-star-item:nth-child(2) .skeleton-star-count {
    animation-delay: 0.2s;
}

.skeleton-star-item:nth-child(3) .skeleton-filter-star,
.skeleton-star-item:nth-child(3) .skeleton-star-count {
    animation-delay: 0.3s;
}

.skeleton-star-item:nth-child(4) .skeleton-filter-star,
.skeleton-star-item:nth-child(4) .skeleton-star-count {
    animation-delay: 0.4s;
}

.skeleton-star-item:nth-child(5) .skeleton-filter-star,
.skeleton-star-item:nth-child(5) .skeleton-star-count {
    animation-delay: 0.5s;
}

/*----------------END SKELETON FILTER HOTEL RESULT ----------------*/

/* Desktop: 1025px ke atas */
@media (min-width: 1025px) {
}

/*---------------- SKELETON TOUR SEARCH CARDS ----------------*/
.skeleton-search-tour-card {
    display: flex;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    padding: 10px;
    overflow: hidden;
}

.skeleton-search-tour-image {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 5px;
    height: 177px;
}

.skeleton-search-tour-content {
    flex: 1;
    padding: 10px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.skeleton-search-tour-title {
    height: 24px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 8px;
    width: 70%;
}

.skeleton-search-tour-subtitle {
    height: 16px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 16px;
    width: 50%;
}

.skeleton-search-tour-icons {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.skeleton-search-tour-icons .icon {
    width: 60px;
    height: 20px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 3px;
}

.skeleton-search-tour-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.skeleton-search-tour-price {
    height: 20px;
    width: 100px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
}

.skeleton-search-tour-button {
    height: 36px;
    width: 120px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 5px;
}

/*---------------- END SKELETON TOUR SEARCH CARDS ----------------*/

/*---------------- BADGE FILTER STYLING ----------------*/
.badge-filter-container {
    position: relative;
    margin-bottom: 15px;
}

.badge-section-tour {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
    scroll-behavior: smooth;
}

.badge-section-tour::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.badge-scroll-btn {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    background: #ffffff;
    color: #000000;
    border: none;
    border-radius: 5px;
    width: 40px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    z-index: 10;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.badge-scroll-btn:hover {
    opacity: 1;
    background: #f0f0f0;
}

.badge-scroll-btn-left {
    left: -2px;
}

.badge-scroll-btn-right {
    right: -2px;
}

.badge-scroll-btn.hidden {
    display: none;
}

.badge-section-tour .badge-filter {
    background-color: #6c757d;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #6c757d;
    border-radius: 0.25rem;
    padding: 1px 10px;
    margin: 5px 0px;
    height: 30px;
    font-size: 13px;
    text-wrap: nowrap;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.badge-section-tour .badge-filter:hover {
    background-color: white;
    color: #6c757d;
    transform: scale(1.05);
}

.badge-section-tour .badge-filter.active {
    background-color: var(--theme-primary, #ca262c);
    border-color: var(--theme-primary, #ca262c);
    color: white;
    box-shadow: 0 2px 8px rgba(202, 38, 44, 0.3);
}

.badge-section-tour .badge-filter.active:hover {
    background-color: #b01e24;
    border-color: #b01e24;
    transform: translateY(-1px);
}

/* Responsive badge filter */
@media (max-width: 768px) {
    .badge-section-tour {
        gap: 6px;
        margin-bottom: 12px;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -ms-overflow-style: none;
        scroll-behavior: smooth;
    }

    .badge-section-tour::-webkit-scrollbar {
        display: none;
    }

    .badge-section-tour .badge-filter {
        padding: 5px 10px;
        font-size: 11px;
        flex-shrink: 0;
        white-space: nowrap;
    }
}
/*---------------- END BADGE FILTER STYLING ----------------*/
