.coordinate-search-container {
    position: absolute;
    bottom: 190px;
    left: 15px;
    display: flex;
    flex-direction: column;
    padding: 10px;    
    background-color: #FFF;
    padding-bottom: 20px;
    border-radius: 25px;
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: none;
    z-index: 999;
}
.coordinate-search-container h3, .coordinate-search-container p {
    text-align: center;
}
#x-coordinate{
    padding: 5px;
    border-radius: 15px;
    border: solid;
    border-width: 1px;
    margin-bottom: 5px;
}
#y-coordinate{
    padding: 5px;
    border-radius: 15px;
    border: solid;
    border-width: 1px;
    margin-bottom: 5px;
}
#coordinateAttribute{
    padding: 5px;
    border-radius: 15px;
    border: solid;
    border-width: 1px;
}
#findCoordinateBtn,#toggleCoordinateSystemBtn, #removeCoordinateLayerBtn {
    margin-top: 5px;
    background-color: #dbdbdb;
    border: none;
    padding: 5px;
    border-radius: 15px;
    cursor: pointer;
}
#coordinate-searchBtn{
    position: absolute;
    bottom: 140px;
    border: none;
    left: 15px;
    border-radius: 25px;
    height: 42px;    
    box-shadow: 0 4px 6px 0 rgba(0, 0, 0, 0.2);
    width: 42px;
    align-items: center;
    background-color: #FFF;
}
.tooltip2 {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    top: 0;
    left: 10px;
    display: none; /* Initially hide tooltips */
    cursor: pointer;
}
.tooltip-container2 {
    position: absolute;
}
/* Show tooltips on hover */
#coordinate-searchBtn:hover .tooltip2 {
    display: block;
}

/* For smaller screens, typically phones */
@media (max-width: 768px) {
    #coordinate-searchBtn {
        position: fixed;
        bottom: 30px;         /* Adjust for placement */
        left: 10px;           /* Adjust for placement */
        width: 42px;          /* Ensure consistent width and height */
        height: 42px;
        border: none;
        border-radius: 25px;
        background-color: #FFF;
        box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
        display: flex;        /* Enables flexbox */
        align-items: center;  /* Centers vertically */
        justify-content: center; /* Centers horizontally */
        cursor: pointer;
    }
    
    .material-symbols-outlined {
        font-size: 24px;      /* Adjust icon size if necessary */
        color: #4a4a4a;
    }
    
    #coordinate-searchBtn {
        touch-action: manipulation;
    }
    
    input, select, textarea {
        font-size: 16px; /* Set default font size to prevent zoom */
    }
    
    .coordinate-search-container {
        position: fixed;  /* Fixed positioning to stay on screen when scrolling */
        bottom: 80px;     /* Adjusted from 190px for mobile screens */
        left: 10px;       /* Slightly reduced left margin */
        right: 10px;      /* Add right margin to keep it centered */
        display: flex;
        flex-direction: column;
        padding: 8px;     
        background-color: #FFF;
        border-radius: 20px;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        font-size: 0.9em; /* Reduce font size for smaller screen */
        display: none;
        z-index: 999;
    }
    
    .coordinate-search-container h3, .coordinate-search-container p {
        text-align: center;
        font-size: 1em; /* Scaled down font */
    }
    
    #x-coordinate, #y-coordinate, #coordinateAttribute {
        padding: 4px;      /* Reduce padding */
        border-radius: 12px; /* Adjust radius */
        border: solid 1px;
        margin-bottom: 4px; /* Reduce margin for better spacing */
    }
    
    #findCoordinateBtn, #toggleCoordinateSystemBtn, #removeCoordinateLayerBtn {
        margin-top: 4px;    /* Reduce margin */
        background-color: #dbdbdb;
        border: none;
        padding: 5px;       /* Keep padding small */
        border-radius: 12px;
        cursor: pointer;
        font-size: 0.85em;  /* Smaller font */
    }
    
    #coordinate-searchBtn {
        position: fixed;
        bottom: 15px;       /* Lower position for easier access */
        left: 15px;         /* Keep left-aligned but slightly reduced */
        border: none;
        border-radius: 25px;
        height: 40px;       
        width: 40px;
        box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
        align-items: center;
        background-color: #FFF;
    }
    
    .tooltip2 {
        position: absolute;
        background-color: rgba(0, 0, 0, 0.6); /* Slightly darker for visibility */
        color: #fff;
        padding: 4px 8px;   /* Reduce padding */
        border-radius: 4px;
        font-size: 0.8em;   /* Smaller font for tooltips */
        top: -5px;          /* Position above button */
        left: 15px;
        display: none;
    }

    .tooltip-container2 {
        position: relative; /* Relative to the button container */
    }
    
    /* Show tooltips on hover */
    #coordinate-searchBtn:hover .tooltip2 {
        display: block;
    }
}
