﻿html {
    font-size: 12px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 12px;
  }
}

.input-highlight {
    border: 2px solid red;
    background-color: #fff2f2;
    transition: all 0.3s ease;
}


.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus, .min-today:focus, .form-equipment:focus{
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

input, select, textarea {
    font-size: 16px; /* Ensures there is no zoom for inpout fields on Safari */
}


.btn-custom {
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 167px;
    height: 40px;
    padding: 0 5px;
    font-size: 12px;
    border: 1px solid #ccc; /* Subtle border */
    border-radius: 10px;
    background-color: white;
    color: black;
    margin: 5px;
    white-space: nowrap;
    transition: all 0.2s ease-in-out;
}

    .btn-custom:hover {
        background-color: #e6f4ff; /* Light blue tint */
        border-color: #0094ff;
        color: #0094ff;
        cursor: pointer;
    }


.btn-selected {
    background-color: #0094ff;
    color: white;
    border: 2px solid #0070cc; /* Slightly darker border for definition */
    border-color:white;
    font-weight: bold;
}

.view-button {
    min-width: 80px; /* Adjust as needed */
}

@media (max-width: 768px) {
    .view-button {
        min-width: 60px;
    }
}

.header {
    background-color: #0094ff;
    font-size: 16px;
    /* width: 100vw; /* Full viewport width */
    width: 100%; /* Full width without horizontal scrolling */
    padding: 0px; /* Optional padding for spacing */
    margin: 0; /* Remove any default margin */
    color: white; /* Text color for contrast */
    box-sizing: border-box; /* Ensures padding doesn’t affect full width */
}

.header-row {
    width: 100%; /* Ensures the element fills the viewport width */
    background-color: #0094ff;
    color: white;
    box-sizing: border-box; /* Ensures padding and borders are included in the width calculation */
    padding: 0 16px; /* Add some horizontal padding for spacing */
}

.header-form {
    font-size: 16px;
}

    .header-form input,
    .header-form select,
    .header-form button {
        font-size: 16px;
    }


.footer {
    margin-top: auto;
    font-size: 10px;
}

.footer h5 {
    font-weight: bold;
    font-size: 12px; /* Or any size you prefer */
}


.form-check-input[readonly] {
    pointer-events: none;
    opacity: 0.5;
}

.form-control-plaintext {
    background-color: #e9ecef; /* Slightly grey background */
    border: 1px solid #d3d3d3; /* Light grey border */
    padding: 0.375rem 0.75rem; /* Ensuring it still has some padding for usability */
    color: #495057; /* Default text color */
}

.font-bold {
    font-weight: bold;
}

.center-text {
    text-align: center;
}

.required-asterisk {
    display: block; /* Ensure the label is block to push the asterisk correctly */
}

    .required-asterisk::after {
        content: " *";
        color: red;
    }

.hidden {
    display: none;
}

.readonly-muted {
    background-color: #d6d8db !important; /* Softer gray background */
    color: #333 !important; /* Darker text for better readability */
    /*background-color: #e9ecef;*/
    /*color: #6c757d;*/ /* This ensures the text is muted */
}


@media (max-width: 768px) {
    .form-floating {
        padding-right: 0 !important;
        margin-right: 0 !important;
    }
}

/*@media (max-width: 991px) {*/
    /* Hide search section by default on small screens */
    /*.header #searchForm {
        display: none;
    }*/

    /* Display search section when fully loaded */
    /*.header.search-visible #searchForm {
        display: block;
        transition: all 0.3s ease-in-out;*/ /* Optional transition for smooth display */
    /*}
}*/



/* Example usage of Font Awesome icons */
.icon {
    font-family: 'Font Awesome 5 Free';
    font-weight: 900; /* or 400 for regular */
}

    /* Use Font Awesome class to display an icon */
    .icon:before {
        content: '\f007'; /* Unicode for the icon you want to use */
        /* You can also use the class directly if you prefer */
        /* content: '\f007'; */
    }

.social-icon {
    font-size: 1.8rem; /* Adjust the size as needed */
    margin-right: 10px; /* Adds spacing between icons */
    margin-top: 5px; /* Adds spacing between icons */
}
.social-icons li {
    display: inline-block;
}

#password-strength {
    height: 10px;
    width: 100%;
    background-color: #ddd;
    margin-top: 5px;
}

#password-strength span {
    display: block;
    height: 100%;
}

.weak {
    width: 33%;
    background-color: red;
}

.medium {
    width: 66%;
    background-color: orange;
}

.strong {
    width: 100%;
    background-color: green;
}


.text-right {
    text-align: right;
    margin: 10px; /* Adjust as needed */
    padding: 5px; /* Adjust as needed */
}


.fa-square, .fa-check-square {
    color: #808080; /* Change the color of the icon */
    background-color: transparent; /* Ensure the background is transparent */
}

.fa-square.custom-background, .fa-check-square.custom-background {
    background-color: white; /* Set a custom background color */

}


#dropArea {
    border: 2px dashed #ddd;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

    #dropArea.highlight {
        background-color: #f0f8ff;
    }

.img-preview {
    width: 100px;
    height: 100px;
    margin: 10px;
    object-fit: cover;
    border: 1px solid #ddd;
    border-radius: 5px;
}



#dropArea.hover {
    border-color: #0056b3;
    background-color: #e9ecef;
}

#existingImagesContainer, #imagePreviewContainer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* Space between images */
}

.image-item, .image-preview {
    flex: 1 1 calc(20% - 20px); /* 3 items per row with margin */
    margin: 10px;
    box-sizing: border-box;
    position: relative; /* To position label and radio button */
}

.resizable-image, .image-preview img {
    width: 100%; /* Ensure the image fills the container width */
    height: 200px; /* Fixed height for consistent size */
    object-fit: cover; /* Maintain aspect ratio and cover the container */
    display: block; /* Remove bottom space */
}

#existingImagesTable img.resizable-image {
    width: 100px; /* Adjust width as needed */
    height: 100px; /* Adjust height as needed */
    object-fit: cover; /* Ensure image covers the cell without distortion */
}

#existingImagesTable th, #existingImagesTable td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
}

.image-preview input[type="text"] {
    display: block;
    margin-top: 10px;
    width: 100%; /* Full width */
}

.image-preview label {
    display: block;
    margin-top: 5px;
}



.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(95px, 1fr));
    gap: 2px;
    margin: 0;
    padding: 0;
}

.image-item {
    margin: 0;
    padding: 0;
    overflow: hidden;
    height: 80px;
}

.thumbnail {
    display: block;
    width: 100%;
    height: 80px; /* Set a consistent height */
    max-width: 100%;
    object-fit: cover; /* Ensures the image covers the area while maintaining aspect ratio */
    object-position: center; /* Centers the image vertically and horizontally */
    cursor: pointer;
    transition: transform 0.2s ease;
    border-radius: 5px;
}

    .thumbnail:hover {
        transform: scale(1.05);
    }

.thumbnail-small {
    display: block;
    height: 50px;
    max-width: 100%;
    object-fit: cover; /* Ensures the image covers the area while maintaining aspect ratio */
    object-position: center; /* Centers the image vertically and horizontally */
    margin: 0;
    padding: 0;
    cursor: pointer;
    transition: transform 0.2s ease;
    border-radius: 1px;
}

.thumbnail-cards {
    display: block;
    
    height: 130px; /* Set a consistent height */
    max-width: 100%;
    object-fit: cover; /* Ensures the image covers the area while maintaining aspect ratio */
    object-position: center; /* Centers the image vertically and horizontally */
    cursor: pointer;
    transition: transform 0.2s ease;
    
}

.thumbnail-results {
    display: block;
    width: 100%;
    height: 130px; /* Set a consistent height */
    max-width: 100%;
    object-fit: cover; /* Ensures the image covers the area while maintaining aspect ratio */
    object-position: center; /* Centers the image vertically and horizontally */
    cursor: pointer;
    transition: transform 0.2s ease;
    border-radius: 5px;
}

    .thumbnail-results:hover {
        transform: scale(1.05);
    }

.image-container {
    position: relative; /* Ensure the container is positioned relative for absolute positioning of the checkbox */
    display: block; /* Ensure the container fits the image size */

}

/* For mobile devices */
@media (max-width: 767px) {
    .image-container {
        height: 80px; /* Set a fixed height for the container (you can adjust this as needed) */
    }

    .thumbnail-results {
        height: 80px; /* Set a consistent height */
    }
}

.img-fluid {
    max-width: 100%;
    height: 100%;
    object-fit: cover; /* Ensure the image fills the container */
}


.more-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: none; /* Important to allow click to pass through */
}


.delete-checkbox {
    position: absolute;
    top: 2px;
    right: 2px;
    z-index: 10;
    background: white;
    width: 18px;
    height: 18px;
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid #dc3545;
    border-radius: 4px;
    cursor: pointer;
}

    /* When checked, show a red cross */
    .delete-checkbox:checked::after {
        content: "✖";
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -55%);
        font-size: 12px;
        font-weight: bold;
        color: #dc3545; /* ✅ force red color */
    }



/* Use for the Image Previews */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.2); /* Black background with opacity */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
}

.modal-content {
    position: relative;
    max-width: 90%; /* Limit the size of the modal content */
    max-height: 90%; /* Ensure it doesn't overflow the screen */
    display: flex;
    flex-direction: column; /* Stack the elements vertically */
    align-items: center; /* Center items horizontally */
    justify-content: center; /* Center items vertically */
    overflow: hidden; /* Prevent overflow of large images */
    padding: 0; /* Remove any internal padding that might add space */
    background-color: rgba(0, 0, 0, 0.65) !important; /* Semi-transparent black background */
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}

    .close:hover,
    .close:focus {
        color: #bbb;
        text-decoration: none;
        cursor: pointer;
    }

.mySlides {
    display: none;
    text-align: center;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent black background */
}



.modal-image {
    max-width: 100%; /* Scale image to fit the modal */
    max-height: 80vh; /* Prevent the image from exceeding the viewport height */
    margin: auto;
    display: block;
    border-radius: 8px; /* Optional: rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Optional: add shadow for depth */
}

.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 10px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.3s;
    user-select: none;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

    .prev:hover,
    .next:hover {
        background-color: rgba(0, 0, 0, 0.8);
    }


/* Highlight effect on row hover */
.table .clickable-row {
    cursor: pointer; /* Change cursor to pointer to indicate clickability */
}

    /* Ensure the hover effect is applied specifically to clickable rows within a table */
    .table .clickable-row:hover {
        border: 1px solid #ddd !important; /* Optional border */
    }

/* Highlight clicked row with bold text and background color */
.highlighted-row {
    font-weight: bold;
    background-color: #f0f0f0; /* Light grey background */
}


tr.sold-out {
    background-color: #f8d7da !important; /* light red */
    color: #721c24;
    opacity: 0.6;
}
    tr.sold-out td {
        color: #721c24; /* dark red text */
        
        opacity: 0.8;
    }


/* Add hover effect for clickable cards */
.clickable-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Add shadow on hover */
    transform: translateY(-5px) !important; /* Slightly lift the card */
    cursor: pointer; /* Change cursor to pointer */
    transition: all 0.3s ease; /* Smooth transition */
}

/* Highlight effect for selected card */
.highlighted-card {
    border: 2px solid lightskyblue !important;
    background-color: #f0f8ff;
/*    transition: background-color 0.3s ease, border-color 0.3s ease;*/
}

.badge {
    background-color: #007bff; /* or any color you prefer */
    color: white;
    border-radius: 50%;
    padding: 0.2em 0.4em;
    font-size: 0.75em;
}


#adCarousel .carousel-item img {
    width: 100%;
    max-height: 300px; /* consistent fixed height (adjust as needed) */
    max-width: 100%;
    object-fit: cover; /* Ensures the image covers the area while maintaining aspect ratio */
    object-position: center; /* Centers the image vertically and horizontally */
    cursor: pointer;
    transition: transform 0.3s ease; /* Slightly smoother */
    border-radius: 5px;
}

    /* Only scale the image on hover */
    #adCarousel .carousel-item img:hover {
        transform: scale(1.05);

    }

#adCarousel .carousel-item .col-4 {
    padding: 0 0px; /* Add spacing between images */
}

#adCarousel .carousel-control-prev,
#adCarousel .carousel-control-next {
    width: 5%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

/* Position for larger screens */
#adCarousel .carousel-control-prev {
    left: -1%;
}

#adCarousel .carousel-control-next {
    right: -1%;
}

/* Fix for small screens */
@media (max-width: 768px) {
    #adCarousel .carousel-control-prev {
        left: 2%; /* Bring inside the visible area */
    }

    #adCarousel .carousel-control-next {
        right: 2%; /* Bring inside the visible area */
    }
}



#suggestions {
    border: 1px solid #ccc;
    max-height: 150px;
    overflow-y: auto;
    position: absolute;
    z-index: 1000;
    background: white;
    width: 100%;
}

    #suggestions div {
        padding: 10px;
        cursor: pointer;
    }

        #suggestions div:hover {
            background-color: #f0f0f0;
        }

/* Styling for the heart button */
.favourite-btn {
    /* background-color: rgba(255, 255, 255, 0.5); White circle background */
    background-color: rgba(128, 128, 128, 0.7); /* Gray background with 50% transparency */
    border-radius: 50%; /* Circular button */
    border: 2px; /* Red border around the circle */
    padding: 4px; /* Adjust padding to make the button fit around the icon */
    color: black; /* Heart icon color (red) */
    font-size: 1.5rem; /* Adjust icon size */
    cursor: pointer; /* Pointer cursor */
    display: inline-flex; /* Flexbox for centering the icon */
    align-items: center; /* Center icon vertically */
    justify-content: right; /* Center icon horizontally */
    top: 0; /* Align to the top of the container */
    right: 0; /* Align to the right of the container */
    margin-right: 10px; /* Optional: Add space from the right */
    margin-bottom: 2px; /* Optional: Add space from the right */
}
    .favourite-btn i {
        color: white; /* Keep the heart icon solid */
        opacity: 1; /* Ensure the heart is not transparent */
    }

    /* When active, override the background color */
    .favourite-btn.active {
        background-color: rgba(255, 255, 255, 0.8); /* Solid white background */
    }

        /* When active, change the heart color to red */
        .favourite-btn.active i.fa-regular.fa-heart {
            color: red !important; /* Heart icon turns red when active */
        }

/* Temporary debugging border for dropdown */
.dropdown-menu {
    border: 1px solid red; /* Temporary debugging border */
    display: none; /* Start hidden */
    position: absolute; /* Position the dropdown below the button */
    z-index: 1050; /* Ensure dropdown is above other content */
}


.fc-prev-button, .fc-next-button, .fc-today-button, .fc-customViewDropdown-button {
    font-size: 14px !important;
    padding: 6px 6px !important;
    height: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}


.fc-toolbar-title {
    font-size: 14px !important; /* Adjust size */
    font-weight: bold; /* Optional */
}

.fc-event {
    color: black !important; /* Ensures text is black */
    border: none !important; /* Removes the border */
}

    .fc-event .fc-event-title {
        color: black !important; /* Ensures event title remains black */
        border: none !important; /* Removes the border */
        font-weight: normal !important;
        display: block !important;
        overflow-wrap: break-word !important;
        word-break: break-word !important;
    }

/* Allow event titles to wrap and expand fully */
.fc-daygrid-event {
    white-space: normal !important; /* Allows wrapping */
    height: auto !important; /* Lets it grow vertically */
}

/* Adjust the width of the time column */
.fc .fc-list-event-time {
    width: 80px; /* Adjust width as needed */
    white-space: normal; /* Allow the time to wrap */
    word-wrap: break-word; /* Ensure time range breaks and wraps */
    overflow: hidden;
}

.fc .fc-list-event-dot {
    display: none; /* Hide the dot */
}

/* Custom class for highlighting selected event */
.fc .fc-selected-event {
    background-color: #ffcc00 !important; /* Highlight color */
    border-color: #ff9900 !important;
}



/* For large screens */
.experience-card {
    border: 1px solid #ddd; /* Add border to the card */
    border-radius: 8px;
    padding: 10px; /* Padding for large screens */
}

/* For mobile devices */
@media (max-width: 992px) {
    .experience-card {
        border: none; /* Remove all borders */
        border-radius: 0px;
        border-bottom: 1px solid #ddd; /* Add a bottom border */
        padding: 5px 0; /* Padding for mobile */
        margin-bottom: 5px; /* Space between records */
        margin-top: 0px; /* Space between records */
    }
}

#message {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1050;
    opacity: 1;
    transition: opacity 0.5s ease;
}

#error {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1050;
    opacity: 1;
    transition: opacity 0.5s ease;
}

/* Custom Tab Styles */
.custom-tabs {
    border-bottom: 0px solid white !important;
}

    .custom-tabs .nav-link {
        border: 1px solid white !important;
        color: white;
        transition: border-width 0.2s ease-in-out; /* Smooth transition */
    }

        .custom-tabs .nav-link:hover {
            background-color: lightskyblue;
        }

        .custom-tabs .nav-link.active {
            border-bottom-color: white !important; /* Keeps active tab’s bottom border white */
        }

@media (max-width: 576px) {
    .custom-tabs .nav-item {
        flex: 1; /* Distribute space equally */
        text-align: center;
    }

    .custom-tabs .nav-link {
        width: 100%; /* Ensure full width */
        white-space: nowrap; /* Prevent text wrapping */
    }
}

.text-red {
    color: red;
}

.filter-row {
    display: flex;
    align-items: center;
}

    .filter-row input[type="checkbox"] {
        margin-right: 4px; /* Adds some space between the checkbox and label */
    }

    .filter-row input[type="checkbox"]:disabled + label {
        color: grey;
        opacity: 0.5;
        pointer-events: none;
    }
    .filter-row label {
        font-size: 0.9rem; /* Makes the label text a bit smaller (you can adjust this value as needed) */
    }

.filter-section {
    background-color: #f8f9fa; /* Light gray */
    border-radius: 0.5rem;
}

#map-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 10;
    background: white;
    padding: 10px;
    border: 1px solid #ccc;
    transform: translate(-50%, -50%);
    font-weight: bold;
}

.cookie-banner button {
    background-color: #4CAF50;
    border: none;
    color: white;
    padding: 8px 16px;
    text-align: center;
    text-decoration: none;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 4px;
}


.processing-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1050; /* High enough to overlay everything */
    background-color: rgba(0, 0, 0, 0.5); /* semi-transparent black */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}


.clause {
    /*text-indent: 20px;*/
    margin: 0 0 8px 20px;
}

.subclause {
    /*text-indent: 40px;*/
    margin: 0 0 8px 40px;
}


/*Ser4arch collapsable section*/
.small-search-section {
    font-size: 0.9rem; /* smaller text for the whole section */
}

    .small-search-section .accordion-button {
        font-size: 0.9rem;
        padding: 0.25rem 0.5rem; /* smaller button padding */
    }

    .small-search-section .accordion-body {
        font-size: 0.9rem;
        padding: 0.25rem 0.5rem;
    }

    .small-search-section .form-check {
        margin-bottom: 0.25rem;
    }

    .small-search-section .form-check-label {
        font-size: 0.9rem;
    }



/*TABLE SORTING*/
th.sortable {
    position: relative;
    cursor: pointer;
}

    th.sortable::after {
        content: '';
        position: absolute;
        right: 8px;
        font-size: 0.8em;
    }

    th.sortable.asc::after {
        content: '▲';
    }

    th.sortable.desc::after {
        content: '▼';
    }


.form-overlay-wrapper {
    position: relative;
}

.coming-soon-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%; /* adjust for container padding */
    height: 100%;
    z-index: 10;
    pointer-events: all;
}
