/* Additional styling to center the form */

/* Custom navbar styles */
.navbar {
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); /* Adds a soft shadow to the navbar */
    position: sticky;
    top: 0;
    z-index: 1050; /* Ensure it's above other content */
    background: rgba(255, 255, 255, 0.95); /* Slight transparency */
}
/* Nav item and link styles */
.nav-item .nav-link {
    padding: 0.8rem 1.2rem;
    border-right: 1px solid rgba(0, 0, 0, 0.1); /* Adds a light border between nav items */
    border-left: 1px solid rgba(0, 0, 0, 0.1); /* Adds a light border between nav items */
    font-size: 1.1rem; /* Adjust the size to make it bigger */
}

/* Change text color to blue on hover */
.nav-item .nav-link:hover {
    color: #0056b3;
    transition: color 0.3s ease-in-out;
}
.nav-item .nav-link:last-child {
    border-right: none; /* Removes border from the last nav item */
}

/* Adjust the navbar brand font size */
.navbar .navbar-brand {
    font-size: 1.3rem; /* Increase size of the brand text */
}

/* Dropdown menu styling */
.navbar-nav .dropdown-menu {
    position: absolute;
    top: 100%; /* Places the dropdown just below the toggle */
    left: 0;
    right: 0;
    z-index: 1050;
    min-width: 200px; /* Ensures dropdown is not too narrow */
    max-width: 250px; /* Prevents the dropdown from getting too wide */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1); /* Adds a shadow to the dropdown */
    border-radius: 0.375rem; /* Rounded corners for the dropdown */
    background-color: #fff;
    overflow: hidden; /* Hides any overflowing content */
    max-height: 300px; /* Maximum height for the dropdown */
    overflow-y: auto; /* Allows scrolling when content exceeds the max height */
}

/* Dropdown item styles */
.navbar-nav .dropdown-menu .dropdown-item {
    font-size: 1.2rem; /* Adjust font size */
    padding: 10px 15px; /* Padding for each dropdown item */
    white-space: nowrap; /* Prevents text from wrapping */
    overflow: hidden; /* Ensures content does not overflow */
    text-overflow: ellipsis; /* Adds ellipsis for overflowing text */
}

/* Hover effect for dropdown items */
.navbar-nav .dropdown-menu .dropdown-item:hover {
    background-color: #f8f9fa; /* Light background color on hover */
    color: #0056b3; /* Darker color on hover */
}

/* Ensure dropdown content does not spill outside the viewport */
.navbar-nav .dropdown-menu {
    left: auto;
    right: 0; /* Align the dropdown to the right of the parent container */
}

/* Optional: Add responsive behavior for very small screens */
@media (max-width: 576px) {
    .navbar-nav .dropdown-menu {
        position: static; /* Make dropdown menu static for small screens */
        max-width: 100%; /* Allow dropdown to fill available space */
        left: 0; /* Reset left positioning */
        right: auto; /* Reset right positioning */
    }
}



/* Style the progress bar container */
.progress-bar-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: rgba(0, 0, 0, 0.1);
}
    
.progress-bar {
    height: 100%;
    background-color: #28a745; /* Green for success */
    width: 100%;
    transition: width 0.1s ease-in-out;
}

/* Adjust the background color of the progress bar for error messages */
.alert-danger .progress-bar {
    background-color: #dc3545; /* Red for error */
}



/* Make the accordion headers more prominent */
.accordion-button.custom-accordion-button {
    font-size: 1.25rem; /* Larger font size */
    font-weight: bold;  /* Bold text */
    /* background-color: #007bff;  */
    /* color: #ffffff;    */
    border-radius: 0.375rem; /* Rounded corners */
    padding: 0.75rem 1rem; /* Add padding */
}

.accordion-button.custom-accordion-button:focus {
    box-shadow: none; /* Remove the focus shadow */
}

.accordion-button i {
    margin-right: 10px; /* Space between icon and text */
}

/* CSS for Sorting Icons */
th.sortable {
    cursor: pointer;
}
th.sortable i {
    margin-left: 5px;
}

th.asc i::after {
    content: "▲";
}
th.desc i::after {
    content: "▼";
}

/* Homepage add logo image to carousel */

.logo-carousel {
    position: absolute;
    width: 20%; /* Adjust size based on screen width */
    max-width: 200px; /* Ensures it doesn’t get too big */
    height: auto;
    z-index: 10; /* Keeps it above the image */
  }
  
  /* Individual positions for each slide */
  .top-right-carousel { top: 10px; right: 10px; }
  .bottom-center-carousel { bottom: 10px; left: 50%; transform: translateX(-50%); }
  .top-left-carousel { top: 10px; left: 10px; }
  .bottom-right-carousel { bottom: 10px; right: 10px; }


/* Disabled links (reservation page) */
  a.disabledlink{
    pointer-events: none !important;
    cursor: default;
}



/* Global Styles */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

/* Headings */
h1, h2, h3, h4 {
    font-weight: 600;
    color: #0056b3;
}

/* Make text slightly larger and well spaced */
p {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Responsive Image Carousel */
.carousel-inner img.rounded {
    object-fit: cover;
    height: 500px; /* Adjust for uniform height */
}

/* .logo-carousel {
    position: absolute;
    width: 100px;
    height: auto;
    opacity: 0.9;
} */

.top-left-carousel {
    top: 10px;
    left: 10px;
}

.top-right-carousel {
    top: 10px;
    right: 10px;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
    border: none;
    padding: 12px 20px;
    font-size: 1.1rem;
    transition: 0.3s;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0056b3, #004494);
}

/* Service Section */
.container.my-1 {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

/* Tour Cards */
.card {
    border-radius: 12px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.15);
}

.card-img-top {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    height: 200px;
    object-fit: cover;
}

.card-title {
    color: #0056b3;
    font-weight: 600;
}

img.scaled-img {
    max-width: 250px;
}

.subtle-link {
    color: #999; /* Light gray text */
    text-decoration: underline dotted; /* Dotted underline */
    text-decoration-thickness: 1px; /* Thin underline */
    text-underline-offset: 3px; /* Offset for better readability */
    transition: color 0.2s ease-in-out;
}

.subtle-link:hover {
    color: #666; /* Slightly darker on hover */
    text-decoration-style: solid; /* Solid underline on hover */
}


img.img-brand {
    max-width: 50px;
}


/* Style for prominent reservation button */
.reservation-button {
    background-color: #FF6600; /* Bold color (orange or something eye-catching) */
    color: white;              /* White text for contrast */
    font-size: 18px;           /* Larger text for better visibility */
    padding: 15px 30px;        /* Ample padding for easier clicking */
    border-radius: 8px;        /* Rounded corners for a modern look */
    text-transform: uppercase; /* Capitalize the text */
    font-weight: bold;         /* Make the text stand out */
    transition: background-color 0.3s ease, transform 0.2s ease; /* Smooth hover effects */
}

.reservation-button:hover {
    background-color: #FF4500; /* Slightly darker shade for hover effect */
    transform: scale(1.05);     /* Slight zoom-in effect on hover */
}

.btn:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.card h4[id] {
    scroll-margin-top: 90px;
  }

/* Responsive Grid */
@media (max-width: 992px) {
    .carousel-inner img.rounded {
        height: 350px;
    }

    .container.my-5 {
        padding: 30px;
    }
    .container.my-1 {
        padding: 10px;
    }
    .container {
        padding-right: 0;
        padding-left: 0;
    }
    
    .logo-carousel {
        width: 80px;
    }

    .top-left-carousel, .top-right-carousel {
        top: 5px;
    }
}

@media (max-width: 768px) {
    .carousel-inner img.rounded {
        height: 250px;
    }

    .btn-primary {
        padding: 10px 15px;
        font-size: 1rem;
    }

    .card-text {
        font-size: 0.95rem;
    }

    .container.my-5 {
        padding: 20px;
    }
}

/* Fade-in effect for the body */
.maincontent *:not(.modal, .modal *),
.container-fluid *:not(.modal, .modal *){ /* this line is maybe not needed, TODO: check modals if line is removed! */
    opacity: 0;
    animation: fadeIn 0.5s ease-in-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .maincontent {
        animation: none !important;
    }

    #page-loader {
        display: none;
    }
}

