@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(10px);
    }

    60% {
        transform: translateY(5px);
    }
}

.animate-bounce {
    animation: bounce 2s infinite;
}


/* General =============================*/
html {
    scroll-behavior: smooth;
}

body {
    padding-top: 4.5rem;
}

body .rounded {
    border-radius: 15px !important;
}

body .text-primary {
    color: #583f99 !important;
}

/*body .border-light {
    border-color: #ddd !important;
}*/

body a {
    color: #583f99;
}

body a:hover {
    color: #583f99;
}

h1 {font-size:2rem!important;}
h2 {font-size:1.3rem!important;}
.section-title {font-size:2rem;}

.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: #fff !important;
    background-color: #583f99 !important;
    border-color: #583f99 !important;
    transition: color 0.3s ease; /* Smooth color transition */
}

.btn-primary:hover {
    background-color: #3f2879 !important;
    border-color: #3f2879 !important;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.btn-outline-primary {
    color: #583f99 !important;
    border: 2px solid #583f99 !important;
    transition: color 0.3s ease; /* Smooth color transition */
}

.btn-outline-primary:hover {
    color: #3f2879 !important;
    border: 2px solid #3f2879 !important;
    background-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: 767px) {
    .btn-responsive-width {
        max-width: unset;
    }
}


/* Text Size =============================*/
.text-medium {font-size:1rem!important;}


/* Background =============================*/
.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;
}

/* 设施区域图片统一高度 */
.facilities .card-img-top {
    height: 220px;
    width: 100%;
    object-fit: cover;
    object-position: center;
}
.card-body img {
    height: 220px;
    width: 100%;
    object-fit: cover;
    object-position: center;
}

.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;
}

.card-line {
    border-left: 4px solid #583f99!important;
}


/* 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;
}

.navbar-brand .logo {
    height:70px;
}


@media (max-width: 768px) {
    .navbar-brand .logo {
        height: 30px;
    }
    .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: 100vh;
    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: 2;
    top:20px;
}

.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-carousel .item img {
    height: 350px;
    width: 100%;
    object-fit: cover;
    object-position: center;
}

.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;
}


/* 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: 250px;
    object-fit: cover;
}

.price {
    font-size: 1.3rem;
    font-weight: bold;
    color: #333;
}

.old-price {
    text-decoration: line-through;
    color: #aaa;
}

.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 */
}


/* Why Us / About Us =============================*/
.badge-experience {
    bottom: 40px; 
    left: 20px; 
}

.badge-purple {
    color: #fff; 
    background-color: #583f99;
}

.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: 1;
    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;
}


.feature-icon {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #c1bfd7;
}

 /* Interactive Map (simple hotspots) */
    .mapbox{/*aspect-ratio:1.5/1;background:#fff;border:1px solid #eee;border-radius:18px;overflow:hidden;position:relative*/}
    .mapbox svg{width:100%;height:100%}
    .hotspot{cursor:pointer;opacity:.95;transition:opacity .15s ease}
    .hotspot:hover{opacity:1}


/*#events, #howtogo, #facilities, #map, #contact {padding-top:80px!important;}*/


.pdf-responsive {
    position: relative;
    width: 100%;
    height: 80vh; /* Default: 80% of screen height on large screens */
    overflow: hidden;
}

/* Tablet view */
@media (max-width: 992px) {
    .pdf-responsive {
        height: 70vh;
    }
}

/* Mobile view */
@media (max-width: 576px) {
    .pdf-responsive {
        height: 60vh;
    }
}

.pdf-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}


/* Nav */
.nav-pills li {margin-right:5px;}
.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    background-color: #583f99 !important;
}
.nav-pills .nav-link {
    border: 2px solid #583f99!important;
    color:#583f99;
}

#orgchart h5 {font-size:1.1rem; font-weight:bold;}
#orgchart .card-body {
    padding: 1rem;
}
#orgchart ul {
    margin-bottom:0;
}

.org-chart {
    text-align: center;
}

.org-box {
    border: 2px solid #6f42c1;
    border-radius: 8px;
    padding: 10px 15px;
    background: #fff;
    display: inline-block;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    width: 260px; /* same width for all boxes */
    min-height: 80px; /* ensures consistent height */
    vertical-align: top;
}

.org-connector {
    width: 2px;
    background: #6f42c1;
    margin: 0 auto;
}

.org-line {
    height: 20px;
}

.org-row {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-top: 20px;
    gap: 15px; /* adds space between boxes */
}

ul {
    text-align: left;
    margin: 0;
    padding-left: 1.2rem;
}