/* Custom Location Search Component Styles */
.custom-location-search-container {
    position: relative;
    max-width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.location-search-input-container {
    position: relative;
}

.location-search-input {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid #ddd;
    border-radius: 28px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: #fff;
}

.location-search-input:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.location-search-input::placeholder {
    color: #999;
    font-style: italic;
}

.location-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 20px 20px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-top: 2px;
}

.location-search-results.active {
    display: block;
}

.location-search-result {
    padding: 12px 20px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease;
    font-size: 14px;
    line-height: 1.4;
}

.location-search-result:hover {
    background-color: #f8f9fa;
}

.location-search-result:last-child {
    border-bottom: none;
}

.location-search-no-results {
    padding: 12px 20px;
    color: #666;
    font-style: italic;
    text-align: center;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .location-search-results {
        max-height: 150px;
    }
    
    .location-search-result {
        padding: 10px 15px;
    }
    
    .location-search-input {
        padding: 10px 16px;
        font-size: 13px;
    }
}

/* Integration styles for existing designs */
.input-pill .custom-location-search-container {
    width: 100%;
}

.input-pill .location-search-input {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid #ddd;
    border-radius: 28px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: #fff;
}

.input-pill .location-search-input:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.input-pill .location-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 20px 20px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-top: 2px;
}

.input-pill .location-search-result {
    padding: 12px 20px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease;
    font-size: 14px;
}

.input-pill .location-search-result:hover {
    background-color: #f8f9fa;
}

.input-pill .location-search-result:last-child {
    border-bottom: none;
}

.input-pill .location-search-no-results {
    padding: 12px 20px;
    color: #666;
    font-style: italic;
    text-align: center;
}
