/* ==================== Autocomplete Styles ==================== */

.autocomplete-wrapper {
    position: relative;
    width: 100%;
}

.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 12px 12px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    margin-top: -2px;
}

.autocomplete-dropdown.show {
    display: block;
}

.autocomplete-item {
    padding: 12px 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
    color: var(--dark-color);
    font-size: 15px;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover,
.autocomplete-item.active {
    background: #f8f9fa;
    color: var(--primary-color);
    font-weight: 600;
}

.autocomplete-item.no-results {
    color: #999;
    cursor: default;
    font-style: italic;
}

.autocomplete-item.no-results:hover {
    background: transparent;
    color: #999;
    font-weight: normal;
}

/* For homepage booking form (white text on blue background) */
.book-tour .autocomplete-dropdown {
    background: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.book-tour .autocomplete-item {
    color: var(--dark-color);
}

.book-tour .autocomplete-item:hover,
.book-tour .autocomplete-item.active {
    background: rgba(26, 101, 158, 0.1);
    color: var(--primary-color);
}

/* Scrollbar styling */
.autocomplete-dropdown::-webkit-scrollbar {
    width: 6px;
}

.autocomplete-dropdown::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.autocomplete-dropdown::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.autocomplete-dropdown::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Responsive */
@media (max-width: 768px) {
    .autocomplete-dropdown {
        max-height: 250px;
    }
    
    .autocomplete-item {
        padding: 10px 15px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .autocomplete-dropdown {
        max-height: 200px;
    }
    
    .autocomplete-item {
        padding: 9px 12px;
        font-size: 13px;
    }
}

