.search-container {
    background-color: #f8f9fa;
    padding: 15px;
    border-bottom: 1px solid #dee2e6;
}

.search-box {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.search-box h5 {
    margin-bottom: 0;
    margin-right: 15px;
    white-space: nowrap;
}

@media (max-width: 767.98px) {
    .search-box {
        flex-direction: column;
        align-items: flex-start;
    }

    .search-box h5 {
        margin-bottom: 10px;
        width: 100%;
    }

    .search-box .d-flex {
        width: 100%;
    }
}

.map-container {
    position: relative;
}

#search-results {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    max-height: 300px;
    overflow-y: auto;
    margin: 10px auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    width: 100%;
    max-width: 500px;
}

.client-card {
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 4px solid #183047;
}

.client-card:hover {
    background-color: #e9ecef;
    transform: translateX(5px);
}

.map-info-window {
    max-width: 300px;
}

.map-info-window h5 {
    margin-bottom: 5px;
    color: #183047;
}

.map-info-window p {
    margin-bottom: 5px;
}

.map-info-window a {
    color: #183047;
    font-weight: bold;
}

#map {
    height: calc(100vh - 130px);
    width: 100%;
}

/* User location button styling */
.location-button {
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    width: 40px;
    height: 38px;
    text-align: center;
    line-height: 38px;
    cursor: pointer;
    border: 1px solid #ced4da;
    display: flex;
    align-items: center;
    justify-content: center;
}

.location-button:hover {
    background-color: #f0f0f0;
}

.location-button.active {
    background-color: #28a745;
    color: white;
}

.nearby-badge {
    background-color: #28a745;
    color: white;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 3px;
    margin-left: 5px;
    vertical-align: middle;
}

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

.search-hint {
    position: absolute;
    bottom: -20px;
    left: 0;
    font-size: 11px;
    color: #6c757d;
    white-space: nowrap;
    z-index: 1; /* Ensure hint appears above other elements */
}

/* Fix for input-group appearance */
.custom-input-wrapper {
    flex: 1;
    position: relative;
}

/* Ensure the button is properly aligned */
.custom-input-wrapper + .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    height: 38px;
}

@media (max-width: 767.98px) {
    .search-hint {
        position: static;
        display: block;
        margin-top: 5px;
        margin-bottom: 5px;
    }
}

/* Map reset button styling */
.map-reset-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: white;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    cursor: pointer;
    display: none;
    z-index: 1000;
    text-align: center;
    line-height: 32px;
}

/* User location dot styling */
.user-location-pin {
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-location-dot {
    width: 16px;
    height: 16px;
    background-color: #4285F4;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.3);
}
