.pt-safe {
    padding-top: env(safe-area-inset-top, 0);
}

.pb-safe {
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.search-bar {
    background-color: #f3f4f6;
    transition: background-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.search-bar:hover {
    background-color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.search-bar input {
    background-color: transparent;
    flex-grow: 1;
}

.search-bar input::placeholder {
    color: #4c5058;
    background-color: transparent;
    opacity: 1;
}

.search-bar #search-go-btn {
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 2.7rem;
}

.search-options {
    z-index: 950;
}

.deal-card {
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: transform 0.2s;
    display: block;
    /* border: 2px dashed gray; */
    /* box-shadow:0px 1px 2px; */
    box-shadow: 0px 0px 2px 1px;
}

.deal-card:hover {
    transform: translateY(-5px);
}

.deal-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.deal-content {
    padding: 1rem;
}

.deal-offer {
    font-size: 1rem;
    font-weight: 700;
    color: #18a545;
    margin-bottom: 0.75rem;
    /*text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    background: linear-gradient(180deg, rgb(24 165 92 / 8%) 0%, rgba(245, 98, 3, 0) 100%);*/
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
    line-height: 1.2;
    border: 2px dashed;
}


.deal-business {
    font-size: 1rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.deal-location {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.deal-expiry {
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 0.75rem;
}

.desktop-nav {
    display: none;
}

.mobile-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 60;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}

.mobile-nav.open {
    max-height: 300px;
}

.menu-toggle {
    width: 2.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.browse-menu {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 16rem;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 50;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
}

.browse-menu.open {
    transform: translateX(0);
}

.category-link {
    color: rgb(107, 144, 203);
    border-radius: 0.375rem;
    padding: 0.25rem 0.75rem;
    background-color: transparent;
    position: relative;
    text-decoration: none;
}

.category-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: rgb(107, 144, 203);
    transition: width 0.3s ease-in-out, left 0.3s ease-in-out;
}

.category-link:hover::after {
    width: 100%;
    left: 0;
}

.browse-menu .category-link {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.5rem 1rem;
    font-size: 1.125rem;
}

@media (min-width: 768px) {
    .desktop-nav {
        display: flex;
    }
    .mobile-nav {
        display: none !important;
    }
    .menu-toggle {
        display: none;
    }
    .browse-menu {
        display: none;
    }
}

@media (max-width: 767px) {
    .desktop-nav {
        display: none !important;
    }
    .mobile-nav:not(.open) {
        max-height: 0;
    }
}

body.menu-open {
    overflow: hidden;
}

.favorite-badge,
.redeemed-badge {
    min-width: 1.25rem;
    height: 1.25rem;
    font-size: 0.75rem;
    line-height: 1;
}

.favorites-link .relative,
.redeemed-link .relative {
    padding-right: 0.75rem;
}

.favorites-link,
.redeemed-link {
    display: flex;
    align-items: center;
}

.members-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 50;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}

.members-dropdown.open {
    max-height: 500px;
}

.members-dropdown li {
    display: flex;
    align-items: center;
}

.members-dropdown .favorites-link .relative,
.members-dropdown .redeemed-link .relative {
    padding-right: 0.75rem;
}

@media (max-width: 767px) {
    .members-btn {
        padding: 0.5rem;
    }
}