@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(10px);
    }

    60% {
        transform: translateY(5px);
    }
}

@keyframes moveleftbounce {
    0% {
        transform: translateX(0px);
    }

    50% {
        transform: translateX(20px);
    }

    100% {
        transform: translateX(0px);
    }
}

.animate-bounce {
    animation: bounce 2s infinite;
}

/* Keyframes: gentle floating + scaling */
@keyframes float {
    0%, 100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-20px) scale(1.05);
    }
}


/* General =============================*/
html {
    scroll-behavior: smooth;
}

body {
    padding-top: 4.5rem;
}

    body .rounded {
        border-radius: 15px !important;
    }

    body .rounded-lg {
        border-radius: 25px !important;
    }

    body .text-primary {
        color: #583f99 !important;
    }

    /*body .border-light {
    border-color: #ddd !important;
}*/

    body a {
        color: #583f99;
    }

        body a:hover {
            color: #583f99;
        }

.disabled-link {
    /*pointer-events: none;*/ /* disables all mouse events */
    opacity: 0.7; /* makes it look faded */
    cursor: not-allowed; /* changes cursor to 'not allowed' */
}

.sticky-top {
    top: 85px !important; /* Adjust for navbar if needed */
}

@media (min-width: 810px) {
    .container {
        max-width: 1360px !important;
    }
}


/* Breadcrumb =============================*/
.breadcrumb {
    background-color: #fff !important;
}

    .breadcrumb a {
        color: #583f99 !important;
    }


/* Button =============================*/
.btn-lg {
    padding: 15px 20px !important;
}

.btn-primary {
    color: #222 !important;
    background-color: #ffde2f !important;
    border-color: #ffde2f !important;
    transition: color 0.3s ease; /* Smooth color transition */
}

.btn-primary:hover {
    background-color: #f1d123 !important;
    border-color: #f1d123 !important;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.btn-outline-primary {
    color: #583f99 !important;
    border-color: #583f99 !important;
    transition: color 0.3s ease; /* Smooth color transition */
}

.btn-outline-primary:hover {
    background-color: #583f99 !important;
    color: #fff !important;
}

.btn-outline-primary:hover:disabled {
    background-color: unset !important;
    color: #583f99 !important;
}

.btn-purple {
    background-color: #583f99 !important;
}

.btn-circle {
    width: 40px;
    height: 40px;
}

.btn-responsive-width {
    width: 100%;
    max-width: 250px; /* optional: control max size */
}

@media (max-width: 1200px) {
    .btn-responsive-width {
        max-width: unset;
    }
}

@media (max-width: 811px) {
    .custom-btn {
        padding: 0.5rem 1rem !important;
        font-size: 1rem !important;
    }
}


/* Text Size =============================*/
.text-small {
    font-size: 0.9rem;
    line-height:18px;
}

.text-medium {
    font-size: 1rem !important;
}


/* Badge =============================*/
.badge-purple {
    color: #fff;
    background-color: #583f99;
}

.badge-red {
    color: #fff;
    background-color: #ff4d4d;
}

.badge-medium {
    font-size: 1rem !important; /* Bigger font */
    padding: 0.5em 1em !important; /* More padding */
}


/* Background =============================*/
.bg-dark-purple {
    background-color: rgb(23, 13, 51)!important;
}

.bg-yellow {
    background-color: #ffde2f;
}

.bg-purple {
    background-color: #583f99;
}

.bg-gray-gradient {
    background: linear-gradient(to bottom, #f3f3f3, #f9f9f9);
}

.bg-white-gradient {
    background: linear-gradient(to bottom, #fafafa, #fff);
}


/* Search Input =============================*/
.search .input-group-append i {
    color: #343a40;
}


/* Card =============================*/
.card {
    overflow: hidden;
}

.card-img-top {
    transition: transform 0.4s ease;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

.card-text-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 50px 20px 20px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .card-text-overlay i {
        font-size: 1.5rem;
        color: #ffde2f;
    }

.card-title a {
    color: #212529;
    transition: color 0.3s ease; /* Smooth color transition */
}

    .card-title a:hover {
        color: #583f99;
        text-decoration: none; /* Ensures no underline on hover */
    }

.card-title i {
    transition: transform 0.3s ease;
}

.card-text-overlay-center {
    position: absolute;
    bottom: 50%;
    right: 20%;
    left: 20%;
    color: white;
    text-align: center;
    background-color: #583f99;
    padding: 10px;
    z-index: 1;
    cursor: not-allowed;
}


/* Media =============================*/
.media i {
    text-align: center;
    min-width: 24px;
}

/* Badge =============================*/
.badge {
    padding: .25em .5em .4rem .5rem !important
}


/* Collapse Style =============================*/
.collapsed i {
    transform: rotate(180deg);
}


/* Form =============================*/
.counter-input {
    text-align: center;
    width: 50px;
}

.iconic-input {
    position: relative;
}

    .iconic-input i {
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        pointer-events: none;
        color: #aaa;
    }

.input-info-right i {
    position: absolute;
    right: -25px;
    top: 11px;
}

#departureDate.form-control[readonly] {
    background-color: unset;
}


/* Custom Check Box Style =============================*/
/* Remove native appearance */
.form-check-input {
    appearance: none;
    -webkit-appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    border: 1px solid #ccc;
    border-radius: 0.25rem;
    position: relative;
    cursor: pointer;
    outline: none;
}

    /* Checkmark box when checked */
    .form-check-input:checked {
        background-color: #583f99;
        border-color: #583f99;
    }

        /* Optional: Custom checkmark */
        .form-check-input:checked::after {
            content: '';
            position: absolute;
            left: 6px;
            top: 2px;
            width: 5px;
            height: 10px;
            border: solid white;
            border-width: 0 2px 2px 0;
            transform: rotate(45deg);
        }


/* Top Menu =============================*/
.navbar {
    padding: 16px 16px !important;
}

.navbar-brand {
    margin-right: 60px !important;
}

.navbar-nav .nav-item:not(:last-child) {
    margin-right: 30px;
}

.navbar .search {
    margin-right: 30px;
}


@media (max-width: 768px) {
    .navbar .search {
        margin-right: 0px;
        margin-top: 15px;
        width: 100%;
    }
}


/* Search Input =============================*/
.search .form-control,
.search .input-group-lg .form-control {
    border-radius: 50px;
    border-color: #fff;
    background-clip: inherit;
    padding: 2rem;
}

.search .input-group-append .btn,
.search .input-group-lg .input-group-append .btn {
    border-radius: 0 50px 50px 0 !important;
    background-color: #fff;
}

@media (max-width: 767px) {
    .search .input-group-lg .form-control {
        padding: 2rem 1rem;
    }
}


/* Hero Casoussel =============================*/
.carousel,
.carousel-inner,
.carousel-item {
    height: 500px;
    position: relative;
}

.carousel-item {
    background-size: cover;
    background-position: center;
    transition: opacity 2.5s ease-in-out;
}

.carousel-fade .carousel-item {
    opacity: 0;
    transition-property: opacity;
    transition-duration: 2.5s;
    transition-timing-function: ease-in-out;
    display: block; /* Important to prevent jumpy layout */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

    .carousel-fade .carousel-item.active {
        opacity: 1;
        position: relative;
        z-index: 2;
    }

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, 0.2); /* Dark overlay */
    z-index: 1;
}

.carousel-caption {
    z-index: 1!important;
    top: 100px;
}

    .carousel-caption .display-4 {
        text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
        font-weight: 600;
        padding: 0 150px;
    }

@media (max-width: 811px) {
    .carousel-caption {
        left: 10% !important;
        right: 10% !important;
    }

        .carousel-caption .display-4 {
            font-size: 2.5rem;
            padding: 0;
        }

        .carousel-caption .btn-lg {
            font-size: 1.1rem;
        }
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, 0.2); /* Dark overlay */
    z-index: 1;
}


/* Owl Carousel =============================*/
.owl-carousel {
    position: relative; /* Needed for nav positioning */
}

.owl-nav {
    position: absolute;
    top: -60px; /* Move arrows to the top */
    right: 0px; /* Move arrows to the right */
    display: flex;
    justify-content: space-between;
    width: auto;
    pointer-events: none;
}

    .owl-nav button {
        background: rgba(0, 0, 0, 0.5);
        border: none;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        pointer-events: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        transition: background 0.3s;
    }

        .owl-nav button:hover {
            background: rgba(0, 0, 0, 0.8);
        }

    .owl-nav i {
        font-size: 1.2rem;
    }

.owl-carousel .item a {
    cursor: pointer;
}

.owl-theme .owl-nav {
    margin-top: 0 !important;
}


/* Highlight =============================*/
.highlight .img-wrap {max-height:400px; overflow:hidden; border-radius:20px;}
.shape-1 {
    top: 5%;
    left: 0%;
    animation: moveleftbounce 5s linear infinite;
}
.owl-carousel-highlight .owl-dots {margin-top:3rem!important;}

@media (max-width: 767px) {
    .owl-carousel-highlight h2 {
        font-size: 1.5rem !important;
    }
    .owl-carousel-highlight h5 {
        font-size: 1rem !important;
    }
}


.float-container {
    position:relative;
    z-index:1;
    margin-top: -130px !important;
    background-color: #fff;
    border-radius: 60px;
}

@media (max-width: 1200px) {
    .float-container {
        margin-top: -100px !important;
        border-radius: 30px;
    }
}

@media (max-width: 767px) {
    .float-container {
        margin-top: -80px !important;
        border-radius: 0px;
    }
}


/* Country =============================*/
.country .card-img-top {
    height: 400px;
    object-fit: cover; /* or 'fill' depending on the effect you want */
}


/* Packages Card =============================*/
.package .card-img-top {
    height: 230px;
    object-fit: cover;
}

@media (max-width: 1200px) {
    .package .card-img-top {
        height: 180px;
    }
}

@media (max-width: 767px) {
    .package .card-img-top {
        height: 220px;
    }
}

.price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
}

.old-price {
    text-decoration: line-through;
    color: #aaa;
    font-size: 0.9rem;
}

.rating {
    font-size: 1.2rem;
    font-weight: 600;
}

.badge-on-image {
    position: absolute;
    bottom: 10px;
    left: 10px;
    z-index: 10;
    font-size: 1rem !important; /* Bigger font */
    padding: 0.5em 1em !important; /* More padding */
}

@media (max-width: 1200px) {
    .price {
        display:block;
    }
}


/* Why Us / About Us =============================*/
.badge-experience {
    bottom: 80px;
    left: 20px;
}

.image-info {
    margin: 0 65px;
}

.subtitle {
    text-transform: uppercase;
    color: #583f99;
    letter-spacing: .175rem;
    font-weight: 600;
    display: block;
    margin-bottom: .5rem;
}

@media (max-width: 767px) {
    .image-info {
        margin: 0;
    }
}


/* Filter =============================*/
.filter .card-title {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}


/* Price Range Slider =============================*/
.noUi-horizontal {
    height: 10px !important;
}
/* Change the filled part (connect bar) */
.noUi-connect {
    background: #583f99 !important;
}

.noUi-handle {
    width: 20px !important;
    height: 20px !important;
    border-radius: 50%;
    cursor: pointer;
    top: -4px !important; /* vertically center */
    margin-left: -10px !important; /* horizontally center based on 12px width */
}

/* Optional: Change the unfilled track */
.noUi-target {
    background: #e9ecef !important; /* light gray */
}


/* Pagination =============================*/
.custom-pagination .page-item {
    margin: 0 5px; /* spacing between items */
}

.custom-pagination .page-link {
    border-radius: 50% !important; /* round shape */
    width: 50px;
    height: 50px;
    line-height: 30px;
    text-align: center;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    color: #583f99;
}

.custom-pagination .page-item.active .page-link {
    background-color: #583f99;
    color: white;
    border-color: #583f99;
}

.custom-pagination .page-link:hover,
.custom-pagination .page-link:focus {
    background-color: #583f99;
    color: white;
    border-color: #583f99;
}


/* Tour Details Gallery =============================*/
.gallery {
    display: flex;
    flex-direction: row; /* enforce side-by-side by default */
    flex-wrap: wrap;
    gap: 10px;
}

.left-img {
    flex: 2;
    max-height: 350px;
    overflow: hidden;
    border-radius: 10px;
}

    .left-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 10px;
        cursor: pointer;
    }

.right-grid {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-height: 350px;
}

    .right-grid .small-img {
        width: 48%;
        height: calc(50% - 5px);
        position: relative;
        border-radius: 10px;
        overflow: hidden;
    }

.small-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
}

.gallery .overlay {
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
}

/*  Ipad  */
@media (max-width: 810px) {
    .right-grid .small-img {
        width: 47%;
    }

    .left-img {
        max-height: 250px;
    }
}

/*  Mobile only: switch to column layout */
@media (max-width: 575.98px) {
    .gallery {
        flex-direction: column;
    }

    .right-grid {
        flex-direction: row;
        max-height: none;
    }

        .right-grid .small-img {
            width: 48%;
            height: 120px;
        }

    .left-img {
        max-height: 200px;
    }
}


/* Side Booking Form =============================*/
.side-booking-form {
    overflow-y: auto;
    height: 60vh;
}

@media (max-width: 811px) {
    .side-booking-form {
        overflow-y: unset;
        height: unset;
    }
}


/* Order Details =============================*/
.tour-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}


/* Payment Method =============================*/
#payment-accordion .collapsed i {
    transform: none;
}

#payment-accordion .card-header img {
    height: 20px;
}

#payment-accordion .card-header {
    padding: 1.25rem 1.25rem;
}

.payment-item .card-body {
    padding: 1rem;
}

.payment-radio {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    visibility: hidden;
}

.payment-item {
    position: relative;
    cursor: pointer;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    border: 1px solid #dee2e6;
    margin-bottom: 0.7rem;
}

    .payment-item:hover {
        box-shadow: 0 0 10px rgba(88, 63, 153, 0.2); /* subtle glow effect */
        border-color: #583f99;
    }

/* Style selected card */
.payment-radio:checked + .payment-item {
    border: 1px solid #583f99;
    box-shadow: 0 0 10px rgba(88, 63, 153, 0.2);
}

.payment-item img {
    width: 70px;
}


/* Fixed Bottom Card=============================*/
.fixed-bottom.card {
    border-radius: 15px 15px 0 0;
}

.fixed-bottom .card-header {
    background-color: #ffde2f;
}

input.form-check-input.is-invalid {
    outline: 2px solid #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220,53,69,.25);
}


.hero-section {
    background-color: rgb(41, 24, 87); /* dark purple */
    color: white;
    padding: 0 0 0 0;
    position: relative;
    overflow: hidden;
}

@media (max-width: 1200px) {
    .hero-section .display-4 {
        font-size: 2.5rem !important;
    }
}

@media (max-width: 811px) {
    .hero-section .display-4 {
        font-size: 2rem !important;
    }
}

@media (max-width: 767px) {
    .hero-section .display-4 {
        font-size: 1.3rem !important;
        padding: 18px 0;
    }
}


.hero-bg-wrap {
    background-image: url("https://demo.assets.templately.com/agency/elementor/53/2024/03/ddd9ab7d-ellipse-3.png");
    background-position: bottom center;
    background-repeat: no-repeat;
    background-size: 100% auto;
}


.hero-bg img {
    width:100%;
}


/* base style for circles */
.circle {
    position: absolute;
    border-radius: 50%;
    background: transparent;
    z-index: 0;
    animation: float 8s ease-in-out infinite;
}

/* Big transparent ring */
.circle-1 {
    top: -200px;
    right: -150px;
    width: 500px;
    height: 500px;
    border: 100px solid #ff4d4d; /* solid red ring */
    background: transparent; /* ensures center is cut out */
    opacity: 0.5;
    animation-delay: 0s;
}

/* Smaller transparent ring */
.circle-2 {
    top: 220px;
    right: 140px;
    width: 150px;
    height: 150px;
    border: 15px solid #ffd166; /* yellow ring */
    background: transparent;
    opacity: 0.9;
    animation-delay: 2s;
}

.circle-3 {
    top: 100px;
    left: -100px;
    width: 230px;
    height: 230px;
    border: 40px solid #6c63ff;
    opacity: 0.5;
    animation-delay: 4s;
}

.circle-4 {
    top: 100px;
    right: 50px;
    width: 80px;
    height: 80px;
    border: 5px solid #6c63ff;
    opacity: 0.7;
    animation-delay: 6s;
}

@media (max-width: 767px) {
    .circle-1 {
        top: -100px;
        right: -100px;
        width: 200px;
        height: 200px;
        border: 50px solid #ff4d4d; /* solid red ring */
    }

    .circle-2 {
        top: 90px;
        right: 10px;
        width: 40px;
        height: 40px;
        border: 5px solid #ffd166; /* yellow ring */
    }

    .circle-3 {
        top: 50px;
        left: -50px;
        width: 100px;
        height: 100px;
        border: 20px solid #6c63ff;
    }
}