@font-face {
    font-family: Montserrat;
    src: url('/assets/fonts/Montserrat-Regular.tff');
}

* {
    box-sizing: border-box;
}

html.map-page, html.map-page body {
    margin: 0;
    padding: 0;
    height: 100%;
    height: 100dvh;
    overflow: hidden;
}

/* Mobile styles by default */
.header-content {
    padding: 8px 10px;
}

.header-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.header-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-title-mobile {
    display: none;
}

@media (max-width: 767px) {
    .header-title-mobile {
        display: inline;
        font-family: 'Oswald', sans-serif;
        font-size: 34px;
        font-weight: 700;
        color: #fff;
        text-transform: uppercase;
        letter-spacing: 1px;
        -webkit-text-stroke: 1px #C82E2A;
        font-style: italic;
    }
}

.header-search-desktop {
    display: none;
}

.header-search-mobile {
    display: block;
    width: 100%;
    padding-top: 8px;
}

.header-nav {
    flex-shrink: 0;
}

.search-bar {
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.search-bar:focus {
    background-color: #525252 !important;
    box-shadow: 0 0 0 2px rgba(200, 46, 42, 0.4);
}

@media (max-width: 767px) {
    .sticky-header {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        background-color:#1a1a1a;
        border-radius:0;
        z-index: 10!important;
        width: 100%;
        display: block;
        border-bottom: 3px solid #C82E2A;
    }

    .header-content {
        width: 100%;
        padding: 14px 15px;
    }

    .header-top-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .header-search-desktop {
        display: none;
    }

    .header-search-mobile {
        display: block;
        width: 100%;
        padding-top: 8px;
    }

    .header-search-mobile .search-container {
        width: 100%;
    }

    .header-search-mobile .search-wrapper {
        width: 100%;
    }

    .header-search-mobile .search-bar {
        width: 100%;
        flex: 1;
    }

    .search-bar {
        padding: 10px;
        border: none;
        height: 40px;
        font-size: 16px;
        color: white;
        background-color: #424242;
        flex: 1;
        outline: none;
    }

    #locationSidebar {
        left: 50% !important;
        transform: translateX(-50%) !important;
        top: 120px !important;
        width: 92% !important;
        max-width: 360px !important;
        min-width: unset !important;
        max-height: calc(100dvh - 140px) !important;
        overflow-y: auto !important;
    }
    .menu-icon {
        display: block!important;
    }
    .links{
        display: none!important;
    }
    #hamburger{
        display: block!important;
    }
}

/* Styles for larger screens */
@media (min-width: 768px) {
    .sticky-header {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        background-color: #1a1a1a;
        border-radius: 0 0 16px 16px;
        z-index: 10 !important;
        width: 60%;
        left: 20%;
        display: flex;
        justify-content: center;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
        border-bottom: 3px solid #C82E2A;
    }

    .header-top-row {
        flex: 1;
    }

    .header-search-desktop {
        display: block;
        flex: 1;
        margin: 0 20px;
    }

    .header-search-mobile {
        display: none;
    }

    .header-content {
        width: 100%; 
        display: flex;
        align-items: center;
        padding: 10px 10px;
    }

    .search-bar {
        padding: 10px;
        border: none;
        height: 40px;
        font-size: 16px;
        color: white;
        background-color: #424242;
        flex: 1; /* Makes the search bar take available width */
        margin-right: 20px; /* Spacing from the links */
        outline: none; /* Remove default browser focus style */
    }

    .search-bar {
        margin-right: 20px;  /* Restore original margin */
    }

    #locationSidebar {
        top:15%!important;
        width:300px;
    }
    .menu-icon {
        display: none!important;
    }
    .links{
        display: inline-block!important;
    }
    #hamburger{
        display: none!important;
    }
}

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@700&display=swap');

/* Style for the popup */
.mapboxgl-popup-content {
    background-color: #212121 !important;
    min-width: 280px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    border-radius: 12px !important;
    color: #fff !important;
    font-family: 'Outfit', sans-serif !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
    padding: 14px 18px !important;
    border-left: 3px solid #C82E2A;
}

.mapboxgl-popup-content hr {
    border-color: rgba(255, 255, 255, 0.15);
    margin: 8px 0;
}

/* Additional style for the popup arrow */
.mapboxgl-popup-tip {
    border-top-color: #212121 !important;
    border-bottom-color: #212121 !important;
}

.links a {
    margin-left: 10px;
    text-decoration: none;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.25s ease;
    font-weight: 600;
}

.links a:hover {
    background-color: #C82E2A;
    color: #fff;
    transform: translateY(-1px);
}
.search-wrapper {
    border-radius: 24px;
    background-color: #424242;
    display: flex;
    align-items: center;
    border: none;
    flex: 1;
    padding: 0 18px;
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.search-wrapper:focus-within {
    background-color: #525252;
    box-shadow: 0 0 0 2px rgba(200, 46, 42, 0.4);
}
#locationSidebar {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#map {
    position: relative;
    height: 100vh;
    height: 100dvh;
    height: -webkit-fill-available;
    max-height: 100dvh;
    overflow: hidden;
}

.col-3, .col-5, .col-4, .col-lg-1, .col-lg-7, .col-lg-4 {
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-results {
    border-radius: 0 0 12px 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.search-results div {
    padding: 10px 14px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.15s ease;
    font-size: 14px;
}

.search-results div:hover {
    background-color: #f5f5f5;
}

.search-results div:last-child {
    border-bottom: none;
}

.search-container {
    position: relative;
    width:100%;
}

.search-results {
    z-index: 1000; /* You might need to adjust this value depending on your layout. */
}

.accordion-toggle {
    cursor: pointer;
    background: #424242;
    padding: 10px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    color: white;
    font-size: 15px;
    transition: 0.4s;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
    background-color: #424242;
}

.accordion-content table {
    width: 100%;
    margin: 0;
}



.menu-icon {
    display: block; /* Change to none for desktops if you want */
    cursor: pointer;
    width: 30px;
    height: 22px;
    flex-direction: column;
    justify-content: space-between;
    position: relative; /* To layer our icon on top of the links menu when it expands */
    z-index: 2; /* Ensure it's layered above */
}

.menu-icon > div {
    height: 4px;
    background-color: #333;
    border-radius: 2px;
}

.links-menu {
    visibility: hidden;
    height: 100; 
    overflow: hidden;/* Initially hide the menu */
    position: absolute; /* Absolute positioning to make it hover below the header */
    top: 100%; /* Start right below the parent container */
    right: 0; /* Align it to the right of the container */
    background-color: #424242;
    width: 100%; /* Take the full width of the parent container */
    border-top: 1px solid #424242; /* Some style to differentiate from the header */
    color:white;
    z-index: 1!important;
}

.links-menu.active {
    visibility: visible;
   
    z-index: 1!important;
}

.links-menu a {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    text-align: left;
    z-index: 1 !important;
    transition: background-color 0.2s ease, padding-left 0.2s ease;
}

.links-menu a:hover {
    background-color: rgba(200, 46, 42, 0.15);
    padding-left: 24px;
    color: #C82E2A;
}

/* GPS Locate Me button */
#locateMe {
    position: absolute;
    bottom: 36px;
    right: 16px;
    z-index: 10;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #1a1a1a;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#locateMe:hover {
    background: #C82E2A;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(200, 46, 42, 0.4);
}

/* User location pulse */
.user-location-pulse {
    width: 18px;
    height: 18px;
    background: #4285f4;
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(66, 133, 244, 0.4);
    animation: locPulse 2s infinite;
}

@keyframes locPulse {
    0% { box-shadow: 0 0 0 0 rgba(66, 133, 244, 0.5); }
    70% { box-shadow: 0 0 0 18px rgba(66, 133, 244, 0); }
    100% { box-shadow: 0 0 0 0 rgba(66, 133, 244, 0); }
}

/* Nearest stores panel */
#nearestPanel {
    display: none;
    position: absolute;
    bottom: 36px;
    right: 72px;
    z-index: 10;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 14px;
    padding: 16px;
    min-width: 280px;
    max-width: 320px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.nearest-item {
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-bottom: 4px;
}

.nearest-item:last-child {
    margin-bottom: 0;
}

.nearest-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.nearest-rank {
    width: 26px;
    height: 26px;
    background: #C82E2A;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

/* Store count badge */
#storeCount {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    background: rgba(26, 26, 26, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 20px;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.3px;
}

#storeCount i {
    color: #C82E2A;
}

/* Mobile adjustments for new elements */
@media (max-width: 767px) {
    #nearestPanel {
        right: 10px;
        left: 10px;
        bottom: 90px;
        min-width: auto;
        max-width: none;
    }
    #locateMe {
        bottom: 30px;
        right: 10px;
    }
    #storeCount {
        bottom: 8px;
    }
}


