html {
  font-size: 14px;
}

/*.custom-dropdown {
    position: relative;
    width: 100%;
    max-width: 400px;
}*/

/* Custom Styled Dropdown */
#daySelectorDropdown {
    width: 100%;
    padding: 12px 40px 12px 16px;
    font-size: 1rem;
    border-radius: 8px;
    border: 2px solid #0056b3;
    background-color: #f8f9fa;
    color: #333;
    appearance: none;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Arrow Icon for Dropdown */
.custom-dropdown::after {
    content: '\25BC'; /* Downward arrow */
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    pointer-events: none;
    color: #0056b3;
    font-size: 1rem;
}

/* Hover and Focus Styles */
#daySelectorDropdown:hover,
#daySelectorDropdown:focus {
    border-color: #00408a;
    box-shadow: 0 0 10px rgba(0, 64, 138, 0.5);
    outline: none;
}

@media (max-width: 576px) {
    .navbar .container-fluid {
        flex-wrap: wrap !important;
    }

    .icons {
        width: 100%;
        justify-content: center !important;
        margin-top: 0.5rem;
    }

    #mobileDay {
        position: absolute;
        left: 14rem;
        top: 2rem; /* adjust to sit below the logo */
        z-index: 10;
    }

    .custom-dropdown {
        margin-left: 0; 
        max-width: 300px; 
    }

    #daySelectorDropdown {
        padding: 10px 40px 10px 14px;
        margin-left: 0; 
        max-width: 320px;
    }

    .custom-dropdown::after {
        right: 16px;
    }
}

/* Ensure consistent badge highlighting */
.filter-badge.active {
    background: linear-gradient(to bottom, #28a745, #1e7e34);
    border: 2px solid #ff4444;
    color: white;
    box-shadow: 0 0 8px rgba(255, 68, 68, 0.6);
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.carousel-img {
    width: 100%;
    height: 300px; /* Set a fixed height to ensure images stay the same size */
    object-fit: fill; /* Ensures the image covers the area without distortion */
}

.badge-container {
    z-index: 10; /* Ensure badges appear on top of the image */
}

.carousel-caption {
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background for better readability */
    color: white;
    padding: 10px;
    border-radius: 5px;
    bottom: 20px; /* Adjust the position of the caption */
}

.custom-control-icon {
    background-color: black; /* Set the background color of the control icons */
    border-radius: 50%; /* Optional: Make the control icons round */
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: brightness(0) invert(1); /* Set the arrows to black */
}

.local-partner-header {
    background-image: url('img\\\restfir.jpeg'); /* Replace with actual image */
    background-size: cover;
    max-height: 144px;
    background-position: center;
    color: white; /* Ensure text is readable */
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5); /* Optional: add text shadow for better visibility */
}

    .local-partner-header .restaurant-title {
        font-size: 1.5rem; /* Adjust font size as needed */
    }

    .local-partner-header .badge-custom {
        background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent badge background */
    }

.small-logo {
    max-width: 300px;
    max-height: 200px;
    width: auto;
}

.navbar-logo {
    max-width: 300px;
    max-height: 150px;
    width: auto;
}

/*this is for mobile views specifically*/
@media (max-width: 768px) {
    .navbar-logo {
        max-width: 150px;
        max-height: 75px;
        width: auto;
    }
}

.filter-badge {
    flex: 1; /* Allows equal spacing */
    min-width: 80px; /* Ensures uniform width */
    max-width: 120px; /* Prevents excessive stretching */
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 10px;
    border-radius: 20px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    background: #ce7e48;
    color: white;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

    /* Hover effect */
    .filter-badge:hover {
        background: #e31d2c;
        transform: scale(1.05);
    }

    /* Active (selected) button */
    .filter-badge.active {
        background: linear-gradient(to bottom, #28a745, #1e7e34);
        border: 2px solid #ff4444;
        color: white;
        box-shadow: 0 0 8px rgba(255, 68, 68, 0.6);
    }

    .filter-badge.today {
        border: 2px ridge #001f3f !important;
    }

    .filter-badge:hover {
        text-decoration: none;
        background-color: #e31d2c; /* Light blue on hover */
        color: white;
    }

/* Adjust navbar padding to account for the day-selector */
.navbar {
    padding-bottom: 0px; /* Removed extra padding */
}

/* Sticky navbar should remain at the top of the page when scrolling */
.sticky-top {
    position: sticky;
    top: 0;
    z-index: 1020;
}

/* Ensure the day selector is centered */
.day-selector {
    position: relative;
    top: 10px;
}

/* Image size constraint */
.restaurant-logo {
    max-width: 200px;
}

/* Accordion Badge Styling */
.badge-custom {
    font-size: 1.2rem;
    padding: 0.5em 1em;
}

/* Restaurant Title */
.restaurant-title {
    font-size: 1.5rem;
    font-weight: bold;
}

/* Featured section styling */
.featured {
    text-align: center;
    padding: 20px;
}

/* Button Styling */
.deal-button {
    font-size: 1.3rem;
    padding: 10px 30px;
    background-color: red;
    color: white;
    border-radius: 10px;
    border: none;
}

/* Accordions */
.accordion-header button {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.icon-button i {
    font-size: 24px; /* Match both sizes */
    color: #888; /* Default color */
    transition: color 0.2s, transform 0.2s;
}

/* When hovered */
.icon-button:hover i {
    color: red;
    transform: scale(1.1);
}

/* When active (selected) */
.icon-button.active i,
.icon-button.favorited i {
    color: red !important;
    font-weight: bold;
}

/* Ensure both are the same size */
#navbarFavorite i,
#cardFavorite i {
    font-size: 24px; /* Set same size */
}

.icon-button {
    border: none; /* Remove the button border */
    background: none; /* Remove the button background */
    padding: 0.5rem; /* Adjust padding for clickable area */
    cursor: pointer; /* Change cursor to pointer */
}

    .icon-button:hover {
        background-color: rgba(0, 0, 0, 0.05); /* Add subtle background on hover */
        border-radius: 0.375rem; /* Optional: Add border-radius for better feel */
    }

    .icon-button:focus {
        outline: none; /* Remove focus outline */
    }

    .icon-button:active {
        background-color: rgba(0, 0, 0, 0.1); /* Darken background on click */
    }

.offcanvas-body {
    overflow-y: auto;
    max-height: 90vh;
}

.basket-item {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

    .basket-item:hover {
        transform: translateY(-5px);
    }

.card-title {
    font-weight: bold;
    color: #333;
}

.card-text {
    color: #666;
}

.btn-success {
    background-color: #28a745;
    border: none;
    font-size: 16px;
    padding: 10px;
    transition: background-color 0.2s ease;
}

    .btn-success:hover {
        background-color: #218838;
    }

.accordion-header {
    background-color: #fef3c7 !important; /* Soft beige */
    color: #333; /* Dark grey text */
}

    .accordion-header.active {
        background-color: #f97316 !important; /* Vivid orange */
        color: #fff; /* White text */
    }

.accordion-body {
    background-color: #f3f4f6 !important; /* Light warm grey */
    padding: 20px;
    border-radius: 8px;
}

.bg-success {
    background-color: #65a30d !important; /* Olive green */
    color: #fff;
}

.bg-warning {
    background-color: #eab308 !important; /* Goldenrod */
    color: #fff;
}

.bg-info {
    background-color: #0ea5e9 !important; /* Sky blue */
    color: #fff;
}

.main-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
}

.accordion-content h3 {
    font-size: 1.5rem;
    color: #333;
}

.accordion-content h5 {
    font-size: 1.2rem;
    color: #555;
}

.accordion-content p {
    font-size: 1rem;
    color: #666;
}

.small-card {
    border-radius: 8px;
    overflow: hidden;
    height: 150px; /* Set a fixed height for the image container */
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f8d7da; /* Background color for the image container */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.small-image {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ensure the image fits within the container without being cropped */
}

/* Adjust badge size for all screens */
.day-selector .badge {
    font-size: .8rem; /* Smaller font size */
    padding: 0.5rem 0.65rem; /* Reduce padding */
    border-radius: 0.5rem; /* Keep the rounded look */
    margin: 0 0.2rem; /* Smaller spacing between badges */
}

/* Further adjustments for mobile views */
@media (max-width: 768px) {
    .day-selector .badge {
        font-size: 0.9rem; /* Even smaller font size for mobile */
        padding: 0.25rem 0.3rem; /* Minimal padding */
        margin: 0 0.1rem; /* Minimal spacing */
    }
}