:root {
    /* Primary Colors */
    --primary: #9c8a5a;
    --primary-light: #b9a87d;
    --primary-dark: #7d6d48;
    --secondary: #1a2639;
    
    /* Neutral Colors */
    --neutral-100: #ffffff;
    --neutral-200: #f8f9fa;
    --neutral-300: #e9ecef;
    --neutral-400: #555555;
    --neutral-500: #111111;
    
    /* Font Family */
    --font-primary: 'Rufina', serif;
}

.hero {
    background-image: url('../image/mainbg.jpg');
    background-size: cover;
    background-position: top;
    height: 900px;
    position: relative; 
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); 
    z-index: 1; 
}



.award-item img {
    width: 70px;
    height: 70px;
    margin-bottom: 10px;
}

.number {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
}

.journal-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    height: 100%;
}

/* Updated Tour Card Styling */
.tour-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    min-width: 350px;
    max-width: 400px;
    flex: 0 0 auto;
    scroll-snap-align: start;
    position: relative;
    background: #fff;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    margin-bottom: 20px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.tour-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.tour-card .card-img-container {
    position: relative;
    overflow: hidden;
    height: 280px;
}

.tour-card .card-img-container img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.6s ease-in-out;
}

.tour-card:hover .card-img-container img {
    transform: scale(1.08);
}

.tour-card .card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 60%);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.tour-card:hover .card-overlay {
    opacity: 0.6;
}

.tour-card .days-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(156, 138, 90, 0.9);
    color: white;
    padding: 8px 15px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.tour-card .card-content {
    padding: 25px;
    position: relative;
}

.tour-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #333;
    font-family: var(--font-primary);
    transition: color 0.3s ease;
}

.tour-card:hover h3 {
    color: var(--primary);
}

.tour-card p.card-description {
    height: 4.5em;
    line-height: 1.5em;
    overflow: hidden;
    margin-bottom: 20px;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

.tour-card .card-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
    padding-top: 15px;
    margin-top: 10px;
}

.tour-card .read-more {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.tour-card .read-more::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: currentColor;
    transition: width 0.3s ease;
}

.tour-card:hover .read-more::after {
    width: 100%;
}

.tour-card:hover .read-more:hover {
    transform: translateX(5px);
}

.tour-card:hover .read-more i {
    animation: bounceRight 0.8s infinite;
}

.tour-card .read-more i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.tour-card .read-more:hover i {
    transform: translateX(3px);
}

@keyframes bounceRight {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

/* Updated Tour Card Container Styling */
.tour-card-container {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding: 15px;
    gap: 20px; /* Space between cards */
    white-space: nowrap;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;  /* Hide scrollbar in IE and Edge */
    scrollbar-width: none;  /* Hide scrollbar in Firefox */
    position: relative;
    transition: scroll-behavior 0.3s ease;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.tour-card-container::-webkit-scrollbar {
    display: none;
}

.itineraries-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

/* Improved scroll button styling */
.scroll-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--primary);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 5;
}

.scroll-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.scroll-btn:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .tour-card {
        min-width: 280px;
    }
    
    .tour-card .card-img-container {
        height: 220px;
    }
    
    .tour-card .card-content {
        padding: 20px;
    }
    
    .tour-card h3 {
        font-size: 1.1rem;
    }
}

.tour-card p {
    height: 3em; /* Fixed height for exactly 2 lines */
    line-height: 1.5em; /* Adjust to match your font size */
    overflow: hidden;
    text-overflow: ellipsis;
}

.tour-card p.small {
    height: 3em;
    line-height: 1.5em;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tour-card img, .journal-card img {
    height: 500px;
    object-fit: cover;
}



/* Animation keyframes for horizontal scrolling */
@keyframes autoScrollHorizontal {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

h2 {
    color: var(--primary);
    font-family: var(--font-primary);
}

.tripadvisor-reviews {
    background: linear-gradient(135deg, var(--neutral-200) 0%, var(--primary-light) 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

/* Luxury Booking Modal Styles */
.modal-dialog.modal-lg {
    max-width: 1000px;
}

#bookingModal .modal-content {
    overflow: hidden;
    border-radius: 12px;
}

#bookingModal .modal-header {
    padding: 1.5rem;
}

#bookingModal .luxury-text {
    font-weight: 800;
    letter-spacing: 1px;
}

#bookingModal .tours-text {
    font-weight: 300;
    letter-spacing: 1px;
}

.booking-quote {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0));
}

.booking-quote blockquote {
    font-size: 1.25rem;
    font-style: italic;
    margin: 0;
}

/* Calendar styling */
#bookingCalendar {
    width: 100%;
    margin: 0 auto;
}

.luxury-calendar {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 8px;
    border: none !important;
    padding: 10px;
}

.flatpickr-months {
    background-color: #fff;
    color: white;
    padding: 10px 0;
}

.flatpickr-month {
    height: 50px;
}

.flatpickr-current-month {
    padding-top: 8px !important;
}

.flatpickr-monthDropdown-months {
    font-weight: 600;
}

.flatpickr-weekday {
    font-weight: 600;
    color: #555 !important;
}

.flatpickr-day {
    border-radius: 50%;
    margin: 6px 2px;
    height: 40px;
    line-height: 40px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.flatpickr-day:hover {
    background-color: #f5f5f5;
    border-color: #f5f5f5;
}

.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover {
    background-color: #fcebeb !important;
    color: #dc3545 !important;
    text-decoration: line-through;
    opacity: 0.7;
}

.flatpickr-day.inRange,
.flatpickr-day.inRange:hover {
    background-color: var(--primary-light) !important;
    box-shadow: none !important;
    color: #111 !important;
}

.flatpickr-day.startRange,
.flatpickr-day.startRange:hover {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: var(--neutral-100) !important;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.4) !important;
}

.flatpickr-day.endRange,
.flatpickr-day.endRange:hover {
    background-color: #20c997 !important;
    border-color: #20c997 !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(32, 201, 151, 0.4) !important;
}

.flatpickr-day.selected,
.flatpickr-day.selected:hover {
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3) !important;
}

/* Legend styling */
.calendar-legend {
    margin-top: 15px;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-right: 15px;
    margin-bottom: 5px;
}

.legend-color {
    width: 16px;
    height: 16px;
    display: inline-block;
    border-radius: 50%;
    margin-right: 5px;
}

/* Input fields styling */
.form-floating > .form-control {
    height: calc(3.5rem + 2px);
    padding: 1rem 0.75rem;
}

.form-floating > label {
    padding: 1rem 0.75rem;
}

/* Booking summary section */
.booking-summary {
    background-color: var(--neutral-200);
    border-left: 4px solid var(--primary);
    transition: all 0.3s ease;
}

.booking-summary.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

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

/* Button styling */
#confirmBooking {
    transition: all 0.3s ease;
    font-weight: 500;
}

#confirmBooking:disabled {
    opacity: 0.6;
}

#confirmBooking:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

.btn-pulse {
    animation: pulse 0.5s;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Toast styling */
.toast-container {
    z-index: 9999;
}

/* Mobile responsiveness */
@media (max-width: 992px) {
    .modal-dialog.modal-lg {
        max-width: 95%;
        margin: 10px auto;
    }
    
    #bookingModal .modal-header {
        padding: 1rem;
    }
    
    .flatpickr-day {
        height: 36px;
        line-height: 36px;
        margin: 2px;
    }
}

@media (max-width: 768px) {
    .flatpickr-months {
        padding: 5px 0;
    }
    
    .flatpickr-day {
        height: 32px;
        line-height: 32px;
        margin: 1px;
    }
}

/* Touch device enhancements */
@media (hover: none) {
    .flatpickr-day:hover {
        background-color: transparent;
        border-color: transparent;
    }
    
    .flatpickr-day.selected:hover,
    .flatpickr-day.startRange:hover,
    .flatpickr-day.endRange:hover,
    .flatpickr-day.inRange:hover {
        background-color: inherit !important;
        border-color: inherit !important;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 20px;
    }

    .sp-container {
        position: relative;
        width: 100%;
        margin: 0;
        left: 0;
        top: -100px;
    }

    .sp-content {
        position: static;
        margin: 0;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    /* Consistent 50px font size for all h2 elements */
    .sp-container h2.frame-1,
    .sp-container h2.frame-2,
    .sp-container h2.frame-3 {
        font-size: 60px;
        line-height: 1.2;
        margin: 5px 0;
        font-family: var(--font-primary);
    }

    .sp-container h2.frame-4 {
        display: none;
    }

    .sp-container h2.frame-5 {
        display: flex;
        flex-direction: column;
        align-items: center;
        font-family: var(--font-primary);
    }

    .sp-container h2.frame-5 span {
        font-size: 50px;
        line-height: 1.2;
        margin: 3px 0;
    }

    .sp-globe {
        display: none; 
    }

    /* Hide buttons on mobile */
    .hbutton {
        display: none;
    }
}

@media (max-width: 480px) {
    .sp-container h2.frame-1,
    .sp-container h2.frame-2,
    .sp-container h2.frame-3 {
        font-size: 60px;
        font-family: var(--font-primary);
    }

    .sp-container h2.frame-4 {
        display: none;
    }

    .sp-container h2.frame-5 span {
        font-size: 60px;
    }

    .sp-container h2.frame-1 {
        font-size: 60px;
        font-family: var(--font-primary);
        padding-right: 300px;
    }
}

/* Floating animation for cards */
.tour-card:hover {
    transform: translateY(-10px);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Pulse animation for buttons */
.btn:hover {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Smooth transition for all elements */
* {
    transition: all 0.3s ease-in-out;
}

/* Image hover effect */
.tour-card img {
    transform: scale(1);
    transition: transform 0.5s ease;
}

.tour-card:hover img {
    transform: scale(1.1);
}

/* Section fade in animation */
.section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card {
    transition: all 0.3s ease;
    z-index: 1;
}

.transform-hover:hover {
    transform: translateY(-10px);
}

.service-bg-shape {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, var(--primary-light), var(--primary-dark));
    border-radius: 50%;
    z-index: -1;
}

.service-bg-shape-alt {
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, var(--primary-dark), var(--primary-light));
    opacity: 60%;
    border-radius: 50%;
    z-index: -1;
}

.icon-circle {
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, var(--neutral-200), var(--neutral-300));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.service-card:hover .icon-circle {
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.text-gradient {
    background: linear-gradient(45deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature-list li {
    transition: all 0.3s ease;
}

.feature-list li:hover {
    transform: translateX(10px);
}

.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2) !important;
}

/* Section Header Styles */
.section-header {
    position: relative;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    font-family: 'Rufina', serif;
    margin-bottom: 1rem;
    text-transform: capitalize;
}

.header-line {
    width: 150px;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--primary-light));
    margin: 0 auto;
    position: relative;
    border-radius: 2px;
}

.header-line::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -8px;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--primary-light));
    border-radius: 2px;
    opacity: 0.6;
}

.section-header:hover .header-line::before {
    width: 120px;
    transition: width 0.3s ease;
}

/* Add responsive adjustments */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .header-line {
        width: 120px;
    }
    
    .header-line::before {
        width: 60px;
    }
}

.qualification-item .icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    background-color: rgba(156, 138, 90, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: -1;
}

/* Add button focus states */
button:focus, .btn:focus, 
button:active, .btn:active, 
button:focus-visible, .btn:focus-visible {
    outline: none !important;
    box-shadow: 0 0 0 0.25rem rgba(156, 138, 90, 0.25) !important;
    border-color: var(--primary) !important;
    background-color: var(--primary-dark) !important;
    color: white !important;
}

.btn-primary:active,
.btn-primary:focus,
.btn-primary:focus-visible {
    background-color: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
}

/* Fix flatpickr date selection colors */
.flatpickr-day.selected, 
.flatpickr-day.startRange, 
.flatpickr-day.endRange, 
.flatpickr-day.selected.inRange, 
.flatpickr-day.startRange.inRange, 
.flatpickr-day.endRange.inRange, 
.flatpickr-day.selected:focus, 
.flatpickr-day.startRange:focus, 
.flatpickr-day.endRange:focus, 
.flatpickr-day.selected:hover, 
.flatpickr-day.startRange:hover, 
.flatpickr-day.endRange:hover, 
.flatpickr-day.selected.prevMonthDay, 
.flatpickr-day.startRange.prevMonthDay, 
.flatpickr-day.endRange.prevMonthDay, 
.flatpickr-day.selected.nextMonthDay, 
.flatpickr-day.startRange.nextMonthDay, 
.flatpickr-day.endRange.nextMonthDay {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: white !important;
}

.service-card .icon-circle i.text-primary {
    color: var(--primary) !important;
}