/* ========================================
   Autocomplete Shared Styles
   Used for custom autocomplete components and Google Places API
   ======================================== */

/* Custom Autocomplete Results Container */
.autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 6px 6px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Custom Autocomplete Item */
.autocomplete-item {
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.15s ease;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover {
    background-color: #f9fafb;
}

/* Keyboard focus (ArrowDown into the list) — distinct from mouse hover. */
.autocomplete-item:focus {
    background-color: #eff6ff;
    outline: 2px solid #3b82f6;
    outline-offset: -2px;
}

.autocomplete-item.selected {
    background-color: #eff6ff;
    font-weight: 500;
}

/* Custom Autocomplete No Results */
.autocomplete-no-results {
    padding: 10px 12px;
    color: #6b7280;
    font-style: italic;
}

/* Custom Autocomplete Loading */
.autocomplete-loading {
    padding: 10px 12px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ========================================
   Google Places Autocomplete Styling
   ======================================== */

/* Google Places Container */
.pac-container {
    z-index: 10000 !important;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-top: 4px;
    font-family: inherit;
}

/* Google Places Item */
.pac-item {
    padding: 10px 12px;
    cursor: pointer;
    border-top: 1px solid #f3f4f6;
    font-size: 14px;
}

.pac-item:first-child {
    border-top: none;
}

.pac-item:hover {
    background-color: #f9fafb;
}

/* Google Places Query Text */
.pac-item-query {
    font-size: 14px;
    color: #111827;
}

/* Google Places Matched Text */
.pac-matched {
    font-weight: 600;
}
