:root {
    --locationButt-white: #c5c5c5; 
    --locationButt-black: black; 
    --locationMagnify-color: black; 
    --border-inputs: none; 
    --location-modalbg: linear-gradient(to bottom right, #141414 60%, #000000 100%);
    --trans-bgMaps: rgba(0,0,0,0.90); 
    --bord-location: 1px solid #6e6e6e;
}

.dark-mode {
    --locationButt-white: white; 
    --locationButt-black: black;
    --locationMagnify-color: black; 
    --border-inputs: 2px solid #6e6e6e; 
    --location-modalbg: #fefefe; 
    --trans-bgMaps: rgba(255, 255, 255, 1); 
    --bord-location: 1px solid rgba(0, 0, 0, 0.2);
}

#changeLocationModal {
    display: none;
    position: absolute;
    top: 2rem;
    right: 3.65rem;
    z-index: 9999;
    background: var(--trans-bgMaps);
    padding: 1.05rem 1.35rem 0.5rem 1.35rem;
    border-radius: 10px;
    width: 275px; /* Default for larger screens */
    border: var(--bord-location);
}

#closeLocationModal {
    position: absolute; 
    color: var(--text-whiteBlack); 
    background: transparent; 
    border: none; 
    font-size: 1.15rem; 
    z-index: 600; opacity: 1; 
    margin: 0; 
    line-height: 0.9; 
    padding: 0.25rem; 
    cursor: pointer; 
    right: 0.15rem; 
    top: 0;
}

#changeLocationStatement {
    font-family: 'Inter' !important; 
}

#locationCorrectBtn, #useGeolocationBtn {
    border: none;
    font-size: 0.925rem;
    font-weight: 600;
    width: 100%;
    padding-top: 0.725rem;
    padding-bottom: 0.725rem;
   background: #0066d9;
    color: white;
    border-radius: 0.35rem;
    opacity: 1;
    transition: opacity 0.28s ease-in-out;
    cursor: pointer;
    line-height: 1;
    font-family: 'Inter'; 
}

#confirmLocation {
    border: none;
    font-size: 0.925rem;
    font-weight: 600;
    width: 100%;
    padding-top: 0.725rem;
    padding-bottom: 0.725rem;
    margin-bottom: 1.35rem;
    background: var(--all-buttons);
    color: var(--navbar-txt) ;
    border-radius: 0.35rem;
    opacity: 1;
    transition: opacity 0.28s ease-in-out;
    cursor: pointer;
    line-height: 1;
    font-family: 'Inter'; 
    border: var(--bord-location); 
}

#useGeolocationBtn:hover, #locationCorrectBtn:hover {
    opacity: 0.75; 
}

.locationTextArea {
    background-color: var(--locationButt-white); 
    color: var(--locationButt-black); 
    display: flex; 
    align-items: center; 
    border-radius: 0.5rem; 
    margin-bottom: 0.875rem; 
    margin-top: 1.35rem;
    border: var(--bord-location); 
    padding: 0.15rem;
}

#searchInput::placeholder {
    color: var(--locationButt-black); 
    opacity: 0.9; 
    font-weight: 400; 
    font-size: 1rem;
    font-family: 'Inter'; 
    font-weight: 500; 
}

.enterCityStateInput::placeholder {
    color: black !important;
    font-weight: 400 !important; 
    font-family: 'Inter';  
    font-size: 1rem !important; 
}

#searchBtn {
    background: none; 
    border: none; 
    padding: 0rem 0.25rem 0rem 0.15rem; 
    cursor: pointer;
    margin-top: -0.055rem;
    border: none; 
    font-size: 0.875rem; 
    font-weight: bold; 
   
    background-color: transparent; 
    color: #ffffff; 
    border-radius: 50%; 
    opacity: 1; 
    transition: opacity 0.22s ease-in-out; 
}

#searchBtn:hover {
    opacity: 0.7; 
}

#useMyLocation {
    border: none;
    font-size: 0.925rem;
    font-weight: 800;
    width: 100%;
    padding-top: 0.725rem;
    padding-bottom: 0.725rem;
    background: #0066d9;
    color: white;
    border-radius: 0.5rem;
    opacity: 1;
    transition: opacity 0.28s ease-in-out;
    cursor: pointer;
    line-height: 1;
    font-family: 'Inter';
    margin-bottom: 1.25rem; 
}

#useMyLocation:hover {
    opacity: 0.7; 
}

.enterCityStateInput {
    background-color: var(--locationButt-white);
    font-family: 'Inter';
    color: var(--locationButt-black);
    padding: 0.285rem 0.5rem 0.32rem 0.25rem;
    border-radius: 15px;
    border: none;
    outline: none;
    font-size: 0.975rem;
    flex: 1; /* Makes input take available space */
    min-width: 0; /* Prevents overflow in flex */
    box-sizing: border-box; /* Includes padding in width */
    font-weight: 500; 
}

@media screen and (max-width: 400px) {
    #changeLocationModal {
        position: fixed;
        width: 85%;  
        top: 3rem;
        left:7.5%; 
        right:7.5%; 
        box-sizing: border-box; 
        align-items: center; 
        justify-content: center; 
        
    }
}

