body {
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', sans-serif !important;
}


   .material-symbols-rounded {
      font-variation-settings:
        'FILL' 0,   /* 0 = outline, 1 = filled */
        'wght' 400, /* weight */
        'GRAD' 0,   /* grade */
        'opsz' 48;  /* optical size */

    }

.nav {

    text-align: left;
    position: sticky;
    top: 0;
    z-index: 1;
}

.nav .appName {
    font-size: 1.5em;
    font-weight: 900;
    font-style: italic;
    color: #5e51a5ff;
}



#map {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
}



/* Blue User Marker (GPS Location - stays fixed) */
.user-marker {
    background: #1c52bdff;
    border: 3px solid white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    cursor: pointer;
}

.user-marker::after {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    background: #4291e694;
    border: 2px solid #5083e1ff;
    border-radius: 70%;
    animation: pulse-ring 2s infinite;
    opacity: 0;
    z-index: -1;
}

/* Red Search Marker (Selected Search Location) */
.search-marker {
    background: transparent;
    border: 3px solid white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
    position: relative;
    cursor: pointer;
}

.search-marker::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.search-marker::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: rgba(255, 68, 68, 0.3);
    border: 2px solid #ff6666;
    border-radius: 70%;
    animation: pulse-ring-red 2s infinite;
    opacity: 0;
    z-index: -1;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
    }
    80%, 100% {
        transform: scale(1.9);
        opacity: 0;
    }
}

@keyframes pulse-ring-red {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
    }
    80%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}
.location-status {
    position: absolute;
    top: 80px;
    right: 20px;
    background: rgba(26, 26, 26, 0.9);
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    z-index: 10;
    display: none;
    max-width: 250px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.location-status.show {
    display: block;
}

.location-status.success {
    background: rgba(76, 175, 80, 0.95);
}

.location-status.error {
    background: rgba(244, 67, 54, 0.95);
}

.location-status.loading {
    background: rgba(33, 150, 243, 0.95);
}

.bottom-box {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 100%;
    height: 50%;
    backdrop-filter: blur(6.40px);
    border-radius: 32px 32px 0 0;
    /* border: 1px solid #bd2424ff; */
    background: rgba(235, 235, 235, 0.60);
    box-shadow: 0 -2px 12.6px 0 rgba(144, 144, 158, 0.50);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 8px 0 8px 0;
    overflow: hidden;
}

.adjBar {
    cursor: ns-resize;
    background-color: #B9B9B9; 
    width: 126px; 
    height: 4px; 
    border-radius: 4px; 
    margin-bottom: 8px;
}
.search {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 83%;
    height: 28px;
    padding: 8px 24px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.10);
    box-shadow: -4px -4px 8px 0 #FFF, 4px 4px 19px 0 rgba(255, 42, 0, 0.20);
    color: #606060;
    /* border: 1px solid orange; */
    font-family: "Open Sans";
    /* font-size: 14px; */
    /* font-weight: 600; */
    margin-bottom: 8px;

}

.current-location {
    font-size: 14px;
    /* background-color: #3d3333ff; */
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    text-align: left;
    font-weight: 600;
    color: #606060;
    flex: 1;
    max-width: 72%;
}


.current-location {
    position: relative;
}

.on {
    font-size: 14px;
    font-weight: 400;
    color: #808080;
    margin-right: 4px;
}

.date-time {
    /* background-color: #3d3333ff; */
    font-size: 14px;
    text-align: right;
    font-weight: 600;
    color: #606060;
    flex-shrink: 0;
}

.results {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 83%;
    background-color: transparent;
    padding: 0 8px;
}

.results .aval-event {
    font-size: 16px;
    font-weight: 700;
    color: black;
    background-color: transparent;
}

.results .result-count {
    font-size: 14px;
    font-weight: 500;
    color: #606060;
    background-color: transparent;
}

/* Hide Mapbox logo and attribution */
.mapboxgl-ctrl-logo,
.mapboxgl-ctrl-attrib,
.mapboxgl-ctrl-compass,
.mapboxgl-ctrl-zoom-in,
.mapboxgl-ctrl-zoom-out
 {
    display: none !important;
}


/* Edit Container */
.editSearch {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 83%;
    height: 184px;
    padding: 24px;
    border-radius: 24px;
    background: rgba(228, 228, 228, 0.15);
    box-shadow: -4px -4px 8px 0 #FFF, 4px 4px 19px 0 rgba(255, 42, 0, 0.20);
    color: #606060;
    font-family: "Open Sans";
    margin: auto;
    margin-top: -5px;
    display: none;
}

@keyframes slideDownExpand {
    from {
opacity: 0;
max-height: 0;
margin-top: 61px;
    }

    to {
opacity: 1;
max-height: 300px;
    }
}

.editSearch {
    animation: slideDownExpand 0.4s ease-out forwards;
    transform-origin: top;
}

.editSearch.hide {
    animation: slideDownCollapse 0.3s ease-in forwards;
}

@keyframes slideDownCollapse {
    from {
transform: translateY(0);
opacity: 1;
max-height: 300px;
    }

    to {
transform: translateY(-100%);
opacity: 0;
max-height: 0;
    }
}

.editPanel {
    width: 100%;
    height: 100%;
    padding: 0;
}

.editPanel #dateLabel {
    font-size: 14px;
    font-weight: 600;
    color: #606060;
    left: 0;
    float: left;
    text-align: left;
    margin-top: 8px;
}

.dateSection {
    position: relative;
    width: 100%;
    height: 40px;
    border-bottom: 1px solid #BBB7B7; 
    margin-bottom: 10px; 
    padding-bottom: 5px;
}

.editPanel input[type="date"] {
    right: 0;
    float: right;
    border: 1px solid #ccc;
    padding: 8px 8px;
    font-size: 14px;
    height: 17px;
    background-color: white;
    border: none;
    border-radius: 8px;
    text-align: center;
    font-family: 'Open Sans', sans-serif;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    display: none;
}

.locationLabel {
    font-family: 'Open Sans', sans-serif !important;
    font-size: 14px;
    font-weight: 600;
    color: #606060;
    left: 0;
    float: left;
    text-align: left;
}

.newSearchCriteria {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    width: 76%;
    height: 26px;
    padding: 4px 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.99);
    color: #606060;
    font-family: "Open Sans";
    font-size: 14px;
    font-weight: 600;
    margin-top: -14px;
}

.searchIcon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background-color: transparent;
    margin-top: 4px;
    font-size: 12px !important;
}


.inputContainer {
    margin-left: 4px;
    width: 100%;
    right: 0 !important;
    float: right;
    height: 23px;
    background-color: transparent;
    border: none;
    font-family: 'Open Sans', sans-serif !important;
    font-size: 16px;
}

.inputContainer:focus {
    outline: none;
}

.materail-symbols-rounded span {
    font-size: 18px;
    color: #606060;
    left: 0;
    text-align: center;
    font-weight: 500
}

.cancelBtn {    
    right: 0;
    float: right;
    margin-top: -35px;
    height: 36px;
    background-color: transparent;
    margin-right: -8px;
}

.cancelBtn button {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    border: none;
    color: #DA4949;
    background-color: transparent;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
}

.submitBox {
    width: 100%;
    margin-top: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.submitBtn {
    gap: 10px;
    width: 48%;
    height: 42px;
    border-radius: 40px;
    border: none;
    background: linear-gradient(180deg, #EEE 0%, #FFF 100%);
    box-shadow: -4px -4px 3.9px 0 rgba(255, 255, 255, 0.65), 4px 4px 10.3px 0 #E4CBCC;
    margin-top: 8px;
    font-family: 'Open Sans', sans-serif !important;
    color: #767676;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
}



/* TEMPORARY DEBUG - Remove after testing */



/* ========================================
   SEARCH SUGGESTIONS - ADD TO style.css
   ======================================== */

/* Search Suggestions Container */
.search-suggestions {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    margin-top: 4px;
    max-height: 280px;
    overflow-y: auto;
    z-index: 9999 !important;;
    display: none;
}

/* Individual Suggestion Item */
.suggestion-item {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
    background: white;
}

.suggestion-item:first-child {
    border-radius: 12px 12px 0 0;
}

.suggestion-item:last-child {
    border-bottom: none;
    border-radius: 0 0 12px 12px;
}

.suggestion-item:hover {
    background-color: #f8f8f8;
    transform: translateX(2px);
}

.suggestion-item:active {
    background-color: #efefef;
}

/* Suggestion Icon */
.suggestion-icon {
    color: #5e51a5ff;
    font-size: 22px;
    margin-right: 10px;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Suggestion Text Container */
.suggestion-text {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Suggestion Name (Main text) */
.suggestion-name {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'Open Sans', sans-serif;
}

/* Suggestion Address (Subtitle) */
.suggestion-address {
    font-size: 12px;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'Open Sans', sans-serif;
}

/* Scrollbar Styling for Suggestions */
.search-suggestions::-webkit-scrollbar {
    width: 5px;
}

.search-suggestions::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 10px;
}

.search-suggestions::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.search-suggestions::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

/* Loading State (Optional) */
.search-suggestions.loading {
    padding: 20px;
    text-align: center;
    color: #888;
    font-size: 14px;
}

.search-suggestions.loading::before {
    content: 'Searching...';
}

/* Empty State (Optional) */
.search-suggestions.empty {
    padding: 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

.search-suggestions.empty::before {
    content: 'No results found';
}

/* Animation for showing suggestions */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-suggestions[style*="display: block"] {
    animation: slideDown 0.2s ease-out;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .suggestion-item {
        padding: 10px 12px;
    }
    
    .suggestion-name {
        font-size: 13px;
    }
    
    .suggestion-address {
        font-size: 11px;
    }
    
    .suggestion-icon {
        font-size: 20px;
        margin-right: 8px;
    }
}