body {
    font-family: 'Metropolis', sans-serif;
}
/* Navbar styles */
.navbar.custom-navbar {
    background-color: rgba(0, 0, 0, 0.1) !important;
    padding: 0.5rem 1rem;
    transition: top 0.3s ease-in-out, background-color 0.3s ease, color 0.3s ease;
}

.navbar.custom-navbar:hover {
    background-color: rgb(235, 230, 230)!important;
}

.navbar-brand img {
    height: 50px;
    max-width: 100%;
}

.navbar-nav {
    margin: 0;
    display: flex;
    justify-content: space-between; /* Distribute nav items evenly */
    align-items: center;
    width: 100%;
    flex-wrap: nowrap;
}

.navbar-nav .nav-item {
    flex-shrink: 0; /* Prevent shrinking */
    margin: 0 0.5rem; /* Adjust spacing between items */
}

.navbar-nav .nav-link {
    padding: 0.5rem 0.25rem;
    font-size: 20px;
    font-family: "metropolis", sans-serif;
    color: white!important;
    transition: color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    white-space: nowrap; /* Prevent text from wrapping */
}

.navbar.custom-navbar:hover .nav-link,
.navbar.custom-navbar.menu-open .nav-link {
    color: black !important;
}

.navbar-nav .nav-link:hover::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: red;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 0, 0, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    /* Set the color of the hamburger menu lines to black */
}

.navbar-toggler:hover .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 0, 0, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    /* Ensure the hamburger menu stays black on hover */
}

.navbar-toggler:hover {
    border: 2px solid black; /* Optional: Add a border around the hamburger menu on hover */
}

@media (max-width: 1199.98px) {
    .navbar-nav .nav-link {
        font-size: 0.9rem;
        padding: 0.5rem 0.2rem;
    }

    .navbar-nav .nav-item {
        margin: 0 0.2rem; /* Adjust spacing for smaller screens */
    }
}

@media (max-width: 991.98px) {
    .navbar.custom-navbar {
        background-color: transparent !important;
    }

    .navbar.custom-navbar.menu-open {
        background-color: rgb(235, 230, 230)!important;
    }

    .navbar.custom-navbar.menu-open .nav-link {
        color: black !important;
    }
    
    .navbar-nav {
        flex-direction: column;
        align-items: flex-start;
    }

    .navbar-nav .nav-item {
        margin: 0.25rem 0;
    }

    .navbar-brand img {
        height: 40px;
    }

    .navbar-nav .nav-link {
        font-size: 0.9rem;
    }
}

@media (max-width: 575.98px) {
    .navbar-brand img {
        height: 30px;
    }

    .navbar-nav .nav-link {
        font-size: 0.8rem;
    }
}

.login-icon {
    width: 20px;
    margin-right: 5px;
}

.dropdown-menu-custom {
    display: none;
    flex-direction: column;
    padding: 15px;
    width: auto;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    position: absolute; /* Ensures correct positioning */
    z-index: 1000; /* Ensures it appears above other content */
}

.dropdown-item-custom {
    display: flex;
    flex-direction: row; /* Keep image and text stacked vertically */
    align-items: center;
    margin-top: 5px 0; /* Increase margin between items */
}

.dropdown-image {
    width: 200px; /* Increase the image size */
    height: 100px; /* Increase the image size */
    margin-right: 10px; /* Space between image and text */
}

.dropdown-item {
    text-align: left;
    color: black;
    font-size: 1rem; /* Increase the text size */
}

.dropdown-item:hover {
    background-color: #f8f9fa !important;
    color: red;
    border-radius: 5px; /* Optional: add rounding on hover */
    transition: background-color 0.3s ease;
}


h1.display-4 {
    font-size: 3rem; /* Adjust this value as needed */
    line-height: 1.2; /* Adjust the line height if necessary */
    font-weight: 600;
}

.jumbotron {
    background-image: url('../images/wh/mountkinabalu.jpg');
    background-size: cover;
    background-attachment: fixed; /* Ensures parallax effect */
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    position: relative;
    height: 80vh; /* Full viewport height */
    display: flex;
    align-items: center; /* Center content vertically */
    justify-content: center; /* Center content horizontally */
    text-align: center;
    overflow: hidden;
}

.container {
    opacity: 0;
    animation: fadeIn 2s ease-in-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.jumbotron img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    will-change: transform;
}

/* Fade-in effect */
.card {
   
    transform: translateY(20px); /* Slightly moved down */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    border-radius: 10px; /* Adjust the radius as needed */
    overflow: hidden; /* Ensures content doesn't overflow the rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Optional: adds a subtle shadow for depth */
    cursor: pointer; /* Indicates the card is clickable */
    font-size: 1rem;
    line-height:1.4;
    height:auto;
}

.card-body {
    height: auto; /* Set a fixed height for card body */
    overflow: visible; /* Hide overflow text */
    text-overflow: ellipsis; /* Add ellipsis if text is too long */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Ensures price is aligned at the bottom */
}

.card-title {
    font-family: 'Allura', cursive;
    font-size: 1.25rem;
    font-weight:500;
    margin-bottom: 0.75rem;
    line-height:1.2;
    word-wrap: break-word;
}

.card-text {
    flex-grow: 1; /* Takes up remaining space */
    margin-bottom: 1rem;
    line-height:1.4;
    word-wrap: break-word;
    font-size:0.9rem;
}

.card.visible {
    opacity: 1; /* Fully visible */
    transform: translateY(0); /* No translation */
}

.card:hover:not(.card-expanded) {
    transform: scale(1.05);
}

.card-expanded {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.2);
    z-index: 1050;
    width: 80%;
    transition: transform 0.3s ease-in-out, width 0.3s ease-in-out;
}

.card-expanded .card-body {
    max-height: 70vh;
    overflow-y: auto;
}

.card-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    display: none;
}

.card img {
    width: 100%;
    height: 200px; /* Adjust the height as needed */
    object-fit: cover; /* Ensures the image covers the area without distortion */
    border-radius: 10px 10px 0 0; /* Rounds the top corners of the image */
}

/* Minimalist search bar */
#searchBar {
    border-radius: 50px;
    border: 1px solid #ccc;
    padding: 10px 20px;
    font-size: 1rem;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    display: block;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#sortPrice, #sortState {
    border-radius: 20px;
    border: 1px solid #ccc;
    padding: 5px 15px;
    font-size: 0.9rem;
    margin-right: 10px;
}

.sort-category {
    border-radius: 20px;
    border: 1px solid #ccc;
    padding: 5px 15px;
    font-size: 0.9rem;
    margin-right: 10px;
    display: inline-block;
    background-color: #fff;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.sort-category.active {
    background-color: #333;
    color: #fff;
}

.sort-category:hover {
    background-color: #666;
    color: #fff;
}

#sort-buttons-container {
    text-align: center;
    margin-top: 20px;
}

/* Additional Styles for a clean look */
input[type="text"], select {
    transition: border-color 0.3s, box-shadow 0.3s;
}

input[type="text"]:focus, select:focus {
    border-color: #333;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

/* Ensure card is fully clickable */
.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.card-link .card:focus {
    outline: none;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}
#special-offers {
    margin-bottom: 40px; /* Adjust this value as needed */
}
