/* Address Autocomplete Styles */

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

.suggestion-item {
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background-color: #f8f9fa;
}

.suggestion-item i {
    color: #10B981;
    margin-right: 10px;
}

.suggestion-item .city-state {
    color: #333;
    font-weight: 600;
}

.suggestion-item .zip-code {
    color: #999;
    font-weight: 400;
    margin-left: 6px;
}

.suggestion-item .address-text {
    color: #333;
    font-weight: 500;
}

/* Search Tab Styles */
#search-tabs .nav-link {
    border-radius: 8px 8px 0 0;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    background-color: #f8f9fa;
    color: #6c757d;
}

#search-tabs .nav-link.active {
    background-color: #10B981;
    color: white;
    border-color: #10B981;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

#search-tabs .nav-link:hover:not(.active) {
    background-color: #e9ecef;
    color: #495057;
}

#search-tabs .nav-link i {
    font-size: 14px;
}

.search-container {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.search-form {
    animation: fadeIn 0.3s ease;
}

/* Ensure input wrappers maintain their widths */
.address-input-wrapper {
    min-width: 300px;
}

.zipcode-input-wrapper {
    min-width: 250px;
}

/* Ensure form-control fills the wrapper */
.address-input-wrapper .form-control,
.zipcode-input-wrapper .form-control {
    width: 100%;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading animation */
.loading-suggestions {
    padding: 10px 15px;
    color: #999;
    font-style: italic;
}

/* No results message */
.no-suggestions {
    padding: 10px 15px;
    color: #999;
    font-style: italic;
}

/* Production-style suggestion header */
.suggestion-header {
    border-bottom: 2px solid #e5e7eb !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 11px !important;
}

/* Production-style suggestion items */
.smart-suggestion-item {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .autocomplete-suggestions {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        max-height: 50vh;
        border-radius: 12px 12px 0 0;
    }
    
    .address-input-wrapper,
    .zipcode-input-wrapper {
        min-width: auto;
    }
}