:root {
    --bs-srufous:#aa210f;
    --bs-swhite:#fff;
    --bs-sdark:#41403c;
    --bs-sorangebrown:#c5875e;
    --bs-sblack:#000;
    --bs-sgreen:#ffc107;
    --bs-overlyclr: #aa210fa8;
    /* Add these new variables for scrollspy */
    --border-radius: 12px;
    --box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    --transition: all 0.3s ease;
    --sticky-nav-height: 70px;
}

.tour-tabs-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
    position: relative;
    padding-top: 20px;
}

.tour-tabs-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* Scrollspy Navigation Styling - Updated */
.tour-tabs-nav {
    background: var(--bs-swhite);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 10px;
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    position: sticky;
    top: 113px;
    z-index: 1020;
    transition: var(--transition);
}

/* Sticky State */
.tour-tabs-nav.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    border-radius: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.3s ease-out;
    z-index: 1030;
    padding: 15px;
}

.tour-tabs-nav.sticky .nav-tabs {
    max-width: 1200px;
    margin: 0 auto;
}

.tour-tabs-nav .nav-tabs {
    border-bottom: none;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    padding-bottom: 5px;
}

.tour-tabs-nav .nav-tabs::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.tour-tabs-nav .nav-item {
    margin: 4px;
    flex-shrink: 0;
}

.tour-tabs-nav .nav-link {
    border: none;
    border-radius: 50px;
    padding: 10px 20px;
    font-weight: 500;
    color: var(--bs-sblack);
    background: transparent;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    font-size: 14px;
}

.tour-tabs-nav .nav-link i {
    margin-right: 8px;
    font-size: 16px;
}

.tour-tabs-nav .nav-link:hover {
    color: var(--bs-swhite);
    background: var(--bs-sdark);
}

.tour-tabs-nav .nav-link.active {
    color: white;
    background: var(--bs-sdark);
    box-shadow: 0 4px 10px rgba(58, 134, 255, 0.3);
}

.tour-tabs-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: var(--bs-sorangebrown);
    border-radius: 2px;
}

/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(0,0,0,0.1);
    z-index: 1040;
    display: none;
}

.scroll-progress .progress-bar {
    background: var(--bs-srufous);
    transition: width 0.1s ease;
    height: 100%;
}

.tour-tabs-nav.sticky + .scroll-progress {
    display: block;
}

/* Tab Content Styling - Updated for Scrollspy */
.tour-tab-content {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    position: relative;
}

.tour-tab-content.sticky-padding {
    padding-top: calc(var(--sticky-nav-height) + 20px);
}

.tab-pane {
    padding: 30px;
    animation: fadeIn 0.5s ease;
    scroll-margin-top: calc(var(--sticky-nav-height) + 20px);
}

/* Mobile Styles for Scrollspy */
@media (max-width: 991.98px) {
    .tour-tabs-nav {
        top: 0;
        border-radius: 0 0 var(--border-radius) var(--border-radius);
    }
    
    .col-lg-3 .booking-form {
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .tour-tabs-nav .nav-link {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .tour-tabs-nav .nav-link i {
        font-size: 14px;
        margin-right: 5px;
    }
    
    .tab-pane {
        padding: 20px;
    }
}

@media (max-width: 575.98px) {
    .tour-tabs-nav .nav-link {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .tour-tabs-nav .nav-link i {
        font-size: 12px;
        margin-right: 3px;
    }
    
    .tour-tabs-nav .nav-link span {
        font-size: 13px;
    }
    
    .tab-pane {
        padding: 15px;
    }
}

/* Desktop Only Styles */
@media (min-width: 992px) {
    .tour-tabs-nav .nav-tabs {
        flex-wrap: wrap;
        overflow-x: visible;
    }
    
    .tour-tabs-nav .nav-link {
        padding: 5px 6px;
        font-size: 14px;
    }
}

@media (min-width: 768px) {
    .tour-tabs-nav .nav-item {
        margin: 4px;
    }
}

/* Animations for Scrollspy */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Existing Styles Remain Below - Only scrollspy additions above */

/* Card Styling */
.info-card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: var(--transition);
    margin-bottom: 20px;
    overflow: hidden;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.info-card .card-header {
    background: var(--bs-sdark);
    color: white;
    border: none;
    padding: 15px 20px;
    font-weight: 600;
    border-radius: 12px 12px 0 0;
}

.info-card .card-body {
    padding: 20px;
}

/* Accordion Styling */
.custom-accordion .accordion-item {
    border: none;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    overflow: hidden;
}

.custom-accordion .accordion-button {
    background: var(--bs-sdark);
    color: var(--bs-swhite);
    font-weight: 500;
    padding: 18px 20px;
    border: none;
    box-shadow: none;
}

.custom-accordion .accordion-button:not(.collapsed) {
    background: var(--bs-srufous);
    color: white;
}

.custom-accordion .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.custom-accordion .accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.custom-accordion .accordion-body {
    padding: 20px;
    background: #f9fbfd;
}

/* Gallery Styling */
.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: var(--transition);
    position: relative;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.5));
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Map Styling */
.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
}

/* Booking Form Styling */
.form-control {
    border-radius: 8px;
    padding: 12px 15px;
    border: 1px solid #e1e5eb;
    transition: var(--transition);
}

.form-control:focus {
    border-color: none;
    box-shadow: none;
}

.form-check-input:checked {
    background-color: var(--bs-srufous);
    border-color: var(--bs-srufous);
}

.btn-primary4 {
    background-color: var(--bs-sdark);
    border: 1px solid var(--bs-sorangebrown);
    border-radius: 50px;
    color: var(--bs-swhite);
    padding: 12px 30px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-primary4:hover {
    background-color: var(--bs-srufous);
    border: 1px solid var(--bs-sorangebrown);
    transform: translateY(-2px);
    color: var(--bs-swhite);
    box-shadow: 0 5px 15px rgba(58, 134, 255, 0.3);
}

/* Utility Classes */
.section-title {
    position: relative;
    margin-bottom: 30px;
    padding-bottom: 15px;
    color: var(--bs-sdark);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--bs-sorangebrown);
}

.bg-light-custom {
    background-color: #f8fbfe !important;
}

.icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: var(--bs-sdark);
    color: var(--bs-swhite);
    margin-right: 15px;
    flex-shrink: 0;
}

#overview .card-body h6, #overview .card-body .text-muted1 {
    color: var(--bs-sblack);
}

#season .card-body .table-light1 {
    background-color: var(--bs-sdark);
    color: var(--bs-swhite);
    border: 1px solid var(--bs-sorangebrown);
}

#season .card-body tbody {
    border: 1px solid var(--bs-sorangebrown);
    color: var(--bs-sblack);
}

.badge {
    background: var(--bs-sorangebrown);
    padding: 8px;
}

/* Review CSS - Keep existing */
.review-item {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    padding: 25px;
    transition: transform 0.3s, box-shadow 0.3s;
    border-left: 4px solid var(--bs-sorangebrown);
}

.review-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.review-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.review-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
    margin-right: 15px;
    border: 3px solid var(--bs-sorangebrown);
}

.review-meta {
    flex: 1;
}

.reviewer-name {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--bs-sblack);
}

.reviewer-title {
    color: var(--bs-sdark);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.review-date {
    color: var(--bs-sblack);
    font-size: 0.85rem;
}

.stars {
    color: var(--bs-sgreen);
    margin-bottom: 10px;
}

.rating-badge {
    background-color: var(--bs-srufous);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--bs-swhite);
    margin-left: 10px;
}

.review-content {
    margin-bottom: 15px;
    line-height: 1.6;
    color: var(--bs-sblack);
    position: relative;
    padding-left: 20px;
}

.review-content:before {
    content: '\201C';
    font-size: 50px;
    color: var(--bs-sorangebrown);
    position: absolute;
    left: 0;
    top: -15px;
    font-family: Georgia, serif;
}

.reply-section {
    background-color: rgba(13, 110, 253, 0.05);
    border-radius: 10px;
    padding: 15px;
    margin-top: 20px;
    border-left: 3px solid var(--bs-sorangebrown);
}

.reply-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.reply-badge {
    background-color: var(--bs-srufous);
    color: white;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 10px;
}

.review-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.review-actions button {
    font-size: 0.85rem;
    padding: 5px 12px;
}

.btn-primary3 {
    background-color: var(--bs-sdark);
    border: 1px solid var(--bs-sorangebrown);
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 500;
}

.btn-primary3:hover {
    background-color: var(--bs-srufous);
    border: 1px solid var(--bs-sorangebrown);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(13, 110, 253, 0.3);
}

.btn-secondary3 {
    background-color: var(--bs-sdark);
    color: var(--bs-swhite);
    border: 1px solid var(--bs-sorangebrown);
}

.btn-secondary3:hover {
    background-color: var(--bs-srufous);
    color: var(--bs-swhite);
    border: 1px solid var(--bs-sorangebrown);
}

#itinerary p, #inclusions ul li, #exclusions ul li, #services .card-body p, .clients-rvws p, .rvw-stats p, .reply-section p {
    color: var(--bs-sblack);
}

#services .card-body h6, .features h1 {
    color: var(--bs-sdark);
}

.features .sub-title {
    color: var(--bs-sorangebrown);
}

.stats-card {
    border-radius: 12px;
    transition: all 0.3s;
    padding: 25px;
}

.stats-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

/* Review Form Styles */
.review-form-container {
    margin-top: 30px;
    margin-bottom: 30px;
    display: none;
}

.review-form-container.show {
    display: block;
    animation: fadeIn 0.5s ease;
}

.review-form {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 30px;
    border-left: 4px solid var(--bs-sorangebrown);
}

.form-title {
    color: var(--bs-sdark);
    margin-bottom: 25px;
    font-weight: 700;
    text-align: center;
}

.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-start;
    margin: 20px 0;
}

.star-rating input {
    display: none;
}

.star-rating label {
    font-size: 2rem;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s;
    margin-right: 10px;
}

.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
    color: var(--bs-sgreen);
}

.form-control, .form-select {
    border-radius: 8px;
    padding: 10px 15px;
    border: 1px solid var(--bs-sorangebrown);
    color: var(--bs-sblack);
}

.form-control:focus, .form-select:focus {
    box-shadow: none;
    border-color: none;
}

.form-label, .form-check-label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--bs-sblack);
}

.form-check-input:focus {
    border-color: none;
    outline: 0;
    box-shadow: none;
}

.form-check-input {
    border: 1px solid var(--bs-sorangebrown);
}

/* Animation for form */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .review-header {
        flex-direction: column;
    }
    
    .review-img {
        margin-bottom: 15px;
    }
    
    .review-form {
        padding: 20px;
    }
    
    .star-rating label {
        font-size: 1.5rem;
    }
}

/* Custom wordpressform and rating */
.comments-rating {
	border: none;
	padding: 0;
	margin-left: 0;
}

.comments-rating label {
	display: inline-block;
}

.rating-container {
	/* remove inline-block whitespace */
	font-size: 0;
	/* flip the order so we can use the + and ~ combinators */
	unicode-bidi: bidi-override;
	direction: rtl;
}

.rating-container * {
	font-size: 1.4rem;
}

.rating-container > input {
	display: none;
}

span.dashicons.dashicons-star-filled {
    color: #52c952;
}

.rating-container > input + label {
	/* only enough room for the star */
	font-family: 'dashicons';
	display: inline-block;
	overflow: hidden;
	text-indent: 9999px;
	width: 1em;
	white-space: nowrap;
	cursor: pointer;
	margin: 0;
}

.rating-container > input + label:before {
	display: inline-block;
	text-indent: -9999px;
	content: "\f154";
	color: #18458b;
}

.rating-container > input:checked ~ label:before,
.rating-container > input + label:hover ~ label:before,
.rating-container > input + label:hover:before {
	content: "\f155";
	color: #52c952;
	text-shadow: 0 0 1px #333;
}

.rating-container > .star-cb-clear + label {
	text-indent: -9999px;
	width: .5em;
	margin-left: -.5em;
}

.rating-container > .star-cb-clear + label:before {
	width: .5em;
}

.rating-container:hover > input + label:before {
	content: "\f154";
	color: #888;
	text-shadow: none;
}

.rating-container:hover > input + label:hover ~ label:before,
.rating-container:hover > input + label:hover:before {
	content: "\f155";
	color: #52c952;
	text-shadow: 0 0 1px #333;
}

.comment-respond .rating-container > .star-cb-clear + label, .comment-respond .rating-container > input + label:before {
	text-indent: 9999px;
}

.comment-respond .rating-container > input + label {
	text-indent: -9999px;
}

.rating_form_rating {
  display: flex;
  gap: 4px;
}

.star-rating {
  margin-top: 4px;
}

.comment-form .form-group {
    margin-bottom: 12px !important;
}

/* End comment rating css */
.cta-section h3, .cta-section p {
    color: #fff;
}
/* Sticky Booking Form Styles */
@media (min-width: 992px) {
    .bkfrm {
        position: relative;
    }
    
    .booking-form {
        position: sticky;
        top: 100px; /* Adjust this value based on your header height */
        transition: all 0.3s ease;
        z-index: 100;
        border-radius: 8px;
    }
    
    /* Optional: Add a fade-in effect when scrolling */
    .booking-form {
        animation: fadeIn 0.5s ease;
    }
    
    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}
/* Hide mobile join rows by default */
.mobile-join-row {
    display: none;
}

/* Show only on mobile */
@media (max-width: 768px) {
    .mobile-join-row {
        display: table-row;
        background-color: #f8f9fa;
    }
    
    .mobile-join-row td {
        padding: 10px !important;
        border-top: none !important;
    }
    
    .join-now-btn {
        width: 90%;
        max-width: 171px;
    }
    
    /* Optional: Style departure rows differently on mobile */
    .departure-row td {
        padding-bottom: 5px !important;
    }

}