.box-top-rated .tour-description {
    font-family: "Manrope", sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 20px;
    text-align: center;
    color: #444444;
    max-width: 800px !important;
    margin: 0 auto;
}

/* Tour Search Bar Styles */
.tour-search-wrapper {
    display: flex;
    justify-content: flex-start;
    margin: 30px 15px;
    width: 100%;
}

.tour-search-wrapper .custom-search-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.tour-search-wrapper .custom-search-item {
    width: 400px;
    display: flex;
    flex-direction: column;
}

.tour-search-wrapper .btn-dropdown-search {
    background-color: #ffffff !important;
    color: #444444 !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 15px !important;
    height: 50px !important;
    width: 100% !important;
    text-align: left !important;
    padding-left: 55px !important; /* Increased padding for icon */
    position: relative !important;
    font-family: "Manrope", sans-serif !important;
    font-weight: 500 !important;
    font-size: 18px !important;
    display: flex !important;
    align-items: center !important;
    background-repeat: no-repeat !important;
}

.tour-search-wrapper .btn-dropdown-search.location-search {
    background-image: url(../../images/location.svg) !important;
    background-position: 20px center !important;
}

.tour-search-wrapper .btn-dropdown-search.passenger-search {
    background-image: url(../../images/paper-airplane.svg) !important;
    background-position: 20px center !important;
}

.tour-search-wrapper .btn-dropdown-search:after {
    content: "" !important;
    border: none !important;
    background-image: url(../../images/arrow-down.svg) !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    width: 14px !important;
    height: 10px !important;
    position: absolute !important;
    right: 20px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    display: block !important;
}

.tour-search-wrapper .btn-green-custom {
    padding: 12px 30px !important;
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    background-color: #27368b !important;
    border-radius: 50px !important;
    height: 50px !important;
    border: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    transition: background-color 0.3s ease;
}

.tour-search-wrapper .btn-green-custom:hover {
    background-color: #1f2b6e !important;
}

.tour-search-wrapper .dropdown-menu {
    width: 100% !important;
    border-radius: 12px !important;
    padding: 15px !important;
    border: 1px solid #e0e0e0 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
    margin-top: 5px !important;
}

.tour-search-wrapper .dropdown-item-radio {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.tour-search-wrapper .dropdown-item-radio:hover {
    background-color: #f5f5f5;
}

.tour-search-wrapper .dropdown-item-radio input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    margin-right: 12px;
    cursor: pointer;
    background-color: #d9d9d9;
    border-radius: 50%;
    position: relative;
    display: inline-block;
    vertical-align: middle;
}

.tour-search-wrapper .dropdown-item-radio input[type="radio"]:checked::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #27368b;
}

.tour-search-wrapper .dropdown-item-radio label {
    margin-bottom: 0 !important;
    color: #444444 !important;
    font-family: "Manrope", sans-serif;
    font-weight: 500;
    cursor: pointer;
    font-size: 16px;
}

.tour-search-wrapper .dropdown-menu.show.dropdown-hashtag-menu {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
}

@media (min-width: 992px) {
    .tour-search-wrapper .dropdown-menu.show.dropdown-hashtag-menu {
        width: 400px !important;
    }
}

.tour-search-wrapper .dropdown-hashtag-menu li {
    list-style: none;
}

.tour-search-wrapper .dropdown-item-checkbox {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.tour-search-wrapper .dropdown-item-checkbox:hover {
    background-color: #f5f5f5;
}

.tour-search-wrapper .dropdown-item-checkbox input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 18px;
    height: 18px;
    margin-right: 12px;
    cursor: pointer;
    background-color: #d9d9d9;
    border-radius: 4px;
    position: relative;
    display: inline-block;
    vertical-align: middle;
    border: 1px solid #ccc;
    flex-shrink: 0;
}

.tour-search-wrapper .dropdown-item-checkbox input[type="checkbox"]:checked {
    background-color: #27368b;
    border-color: #27368b;
}

.tour-search-wrapper .dropdown-item-checkbox input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
}

.tour-search-wrapper .dropdown-item-checkbox label {
    margin-bottom: 0 !important;
    color: #444444 !important;
    font-family: "Manrope", sans-serif;
    font-weight: 500;
    cursor: pointer;
    font-size: 16px;
    user-select: none;
}

@media (max-width: 991px) {
    .tour-search-wrapper .custom-search-item {
        width: 100%;
        max-width: 400px;
    }
    .tour-search-wrapper .custom-search-row {
        flex-direction: column;
        width: 100%;
        padding: 0 20px;
    }
}

.box-top-rated {
    background-color: white;
    padding: 50px 0;
}

@media (min-width: 1400px) {
    .box-top-rated {
        padding: 50px 70px;
    }
}

@media (min-width: 1800px) {
    .box-top-rated {
        padding: 50px 150px;
    }
}

.tour-sub-title {
    display: inline-block;
    font-family: "Manrope", sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 20.92px;
    color: #d02129;
    text-align: center;
}

.tour-main-title {
    font-family: "Manrope", sans-serif;
    font-weight: 700;
    font-size: 32px;
    line-height: 49.69px;
    text-align: center;
    color: #444444;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.tour-main-title .brand {
    font-family: "Manrope", sans-serif;
    font-weight: 700;
    font-size: 32px;
    line-height: 49.69px;
    color: var(--bs-neutral-main);
}

.container-slider {
    padding-left: 0;
    padding-right: 0;
}

@media (min-width: 1400px) {
    .container-slider {
        padding-left: 0;
        padding-right: 0;
    }
}

.card-title a {
    font-weight: 700;
}

.card-price .heading-6 {
    color: var(--bs-neutral-main);
    margin-bottom: 0;
}

.endtime {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.card-price {
    text-align: right;
}

.btn.tour-btn-main {
    color: var(--bs-neutral-main) !important;
}
.btn.tour-btn-main {
    padding: 8px 18px !important;
    font-size: 14px !important;
    line-height: 22px !important;
    font-family: "Manrope";
    font-weight: 700 !important;
    background-color: var(--bs-button-bg-2);
    border-radius: 50px;
    border: 1px solid var(--bs-neutral-main);
}
.btn.tour-btn-main svg {
    stroke: var(--bs-neutral-main);
    margin-left: 13px;
}
.btn.tour-btn-main:hover {
    color: var(--bs-neutral-0) !important;
    background-color: var(--bs-neutral-main);
    border: 1px solid var(--bs-neutral-main);
}

/* card-guide specific styles - Grow Upwards Refined */
.card-guide {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    border: 1px solid var(--bs-border-color);
    max-width: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 10px !important;
}

.card-guide .card-image {
    position: relative;
    width: 100%;
    height: 326px;
    flex-shrink: 0;
    overflow: hidden;
}

.card-guide .card-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.6s ease !important;
}

.card-guide:hover .card-image img {
    transform: scale(1.1) !important;
}

.card-guide .card-info {
    position: relative !important;
    background-color: var(--bs-neutral-0) !important;
    border-top-left-radius: 30px !important;
    border-top-right-radius: 30px !important;
    padding: 25px 20px !important;
    display: flex !important;
    flex-direction: column !important;
    z-index: 2 !important;
    transition: all 0.45s ease !important;
    margin-top: -40px !important;
}

.card-guide .card-description {
    font-family: "Manrope" !important;
    font-weight: 400 !important;
    font-size: 14px !important;
    line-height: 20px !important;
    color: #666666 !important;
    opacity: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    transition: all 0.45s ease !important;
}

.card-guide:hover .card-description {
    opacity: 1 !important;
    max-height: 150px !important;
    margin-top: 15px !important;
    margin-bottom: 15px !important;
}

/* Grow-up hover: panel anchored to the bottom, pushes upward over the image */
@media (min-width: 640px) {
    .card-guide {
        height: 380px;
    }

    .card-guide .card-image {
        height: 240px;
        flex-shrink: 0;
    }

    .card-guide .card-info {
        position: absolute !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        margin-top: 0 !important;
    }
}

.card-guide .card-hashtags {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-top: 15px !important;
}

@media (min-width: 1200px) {
    .card-guide .card-title a {
        font-size: 16px;
        line-height: 24px;
    }
}

.btn-hashtag {
    height: 35px;
    max-width: 120px;
    background-color: #e3f0ff;
    border-radius: 182px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    text-decoration: none !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-hashtag span {
    font-family: "Manrope";
    font-weight: 700;
    font-size: 13px;
    line-height: 1;
    color: #27368b;
    text-align: center;
    vertical-align: middle;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-hashtag:hover {
    background-color: #d1e6ff;
}
