.map-search-container {
    background: white;
    padding: 10px;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    margin: 10px;
    width: 300px;
    max-height: 80vh;
    overflow: visible;
    transition: height 0.3s ease;
}

/* Add new class for expanded state */
.map-search-container.expanded {
    height: auto;
    min-height: 200px;
}

.search-box {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
}

.search-input-wrapper {
    flex: 1;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.search-suggestions {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    margin-top: 5px;
    max-height: 300px;
    overflow-y: auto;
}

.search-suggestions.show {
    display: block;
}

.suggestion-item {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background-color: #f8f9fa;
}

.suggestion-name {
    font-weight: bold;
    margin-bottom: 2px;
}

.suggestion-address {
    font-size: 0.9em;
    color: #666;
}

.suggestion-item.loading {
    color: #666;
    font-style: italic;
    cursor: default;
}

.suggestion-item.error {
    color: #721c24;
    background-color: #f8d7da;
    cursor: default;
}

.search-button {
    padding: 8px 15px;
    background: #003F87;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.search-button:hover {
    background: #002a5c;
}

.filter-box {
    margin-bottom: 10px;
    position: relative;
}

.filter-dropdown {
    position: relative;
    display: inline-block;
    width: 100%;
}

.filter-button {
    width: 100%;
    padding: 8px;
    background: #f8f9fa;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.filter-button:hover {
    background: #e9ecef;
}

.filter-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 8px;
    margin-top: 5px;
}

.filter-content.show {
    display: block;
}

.filter-content label {
    display: block;
    padding: 6px 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.filter-content label:hover {
    background-color: #f8f9fa;
}

.filter-content input[type="checkbox"] {
    margin-right: 8px;
}

.search-results {
    margin-top: 10px;
    position: relative;
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.result-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.result-item:last-child {
    border-bottom: none;
}

.result-item:hover {
    background-color: #f5f5f5;
}

.result-name {
    font-weight: bold;
    color: #333;
}

.result-type {
    color: #666;
    font-size: 0.9em;
}

.result-distance {
    color: #888;
    font-size: 0.9em;
}

.error, .no-results, .loading {
    padding: 10px;
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin-top: 10px;
}

.loading {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

/* Responsive styles */
@media (max-width: 768px) {
    .map-search-container {
        width: calc(100% - 20px);
        margin: 10px;
    }
}

.selected-location {
    margin: 10px 0;
    display: none;
}

.selected-location:not(:empty) {
    display: block;
}

.selected-location-content {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 10px;
    position: relative;
}

.selected-location-name {
    font-weight: bold;
    margin-bottom: 4px;
}

.selected-location-address {
    font-size: 0.9em;
    color: #666;
}

.clear-location {
    position: absolute;
    top: 5px;
    right: 5px;
    background: none;
    border: none;
    color: #666;
    font-size: 18px;
    cursor: pointer;
    padding: 0 5px;
    line-height: 1;
}

.clear-location:hover {
    color: #dc3545;
} 