/* ========================================
   DESTINATION AUTOCOMPLETE - MODERN GRAY/WHITE
   ======================================== */

/* Destination Field Wrapper */
.destination-field {
    position: relative !important;
}

/* Destination Dropdown (Desktop) */
.destination-dropdown {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: auto !important;
    background: white !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    margin-top: 4px !important;
    max-height: 400px !important;
    overflow-y: auto !important;
    z-index: 10000 !important;
    border: 1px solid #e9ecef;
    min-width: 400px !important;
    max-width: 600px !important;
    width: max-content !important;
}

.destination-field.col-12 {
    overflow: visible !important;
}

.destination-field {
    overflow: visible !important;
}

.destination-field .row,
.destination-field .container {
    overflow: visible !important;
}

/* Mobile Overlay */
.destination-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2000;
}

.destination-overlay.active {
    display: block;
}

/* Mobile Dialog */
.destination-dialog-mobile {
    background: white;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Mobile Header */
.destination-header {
    background: #212529;
    color: white;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.destination-back {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.destination-back:hover {
    background: rgba(255, 255, 255, 0.1);
}

.destination-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}

/* Mobile Body */
.destination-body-mobile {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    background: #f8f9fa;
}

/* Mobile Search Wrapper */
.destination-search-wrapper {
    position: relative;
    padding: 1rem;
    background: white;
    border-bottom: 1px solid #e9ecef;
    flex-shrink: 0;
}

.destination-search-icon {
    display: none;  /* Hidden in mobile - no icon needed */
}

.destination-search-input {
    width: 100%;
    padding: 0.875rem 1rem;  /* Removed left padding - no icon */
    border: 1px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: all 0.2s;
    background: #f8f9fa;
}

.destination-search-input:focus {
    border-color: #495057;
    background: white;
    box-shadow: 0 0 0 0.2rem rgba(33, 37, 41, 0.05);
}

/* Mobile Results */
.destination-results-mobile {
    flex: 1;
    overflow-y: auto;
    background: white;
}

/* Destination Item */
.destination-item {
    display: flex;
    align-items: center;
    padding: 0.875rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid #f8f9fa;
    transition: background 0.2s;
}

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

.destination-item:hover {
    background: #f8f9fa;
}

.destination-item.keyboard-highlighted {
    background: #e9ecef;
    border-left: 3px solid #FFC107;
}

.destination-item-full.keyboard-highlighted {
    background: #e9ecef;
    border-left: 3px solid #FFC107;
}

/* Fulltext Item */
.destination-item-full {
    display: flex;
    align-items: flex-start;
    padding: 0.875rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid #f8f9fa;
    transition: background 0.2s;
    gap: 0.75rem;
}

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

.destination-item-full:hover {
    background: #f8f9fa;
}

/* Destination Icon */
.destination-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
}

.destination-icon svg {
    width: 100%;
    height: 100%;
}

/* Destination Fulltext */
.destination-fulltext {
    font-size: 0.9375rem;
    color: #212529;
    line-height: 1.4;
    flex: 1;
    white-space: nowrap;
}

/* Destination Separator */
.destination-separator {
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #6c757d;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Special States */
.destination-loading,
.destination-error,
.destination-no-results {
    justify-content: center;
    color: #6c757d;
    font-size: 0.875rem;
    padding: 1.5rem 1rem;
    cursor: default;
}

.destination-loading:hover,
.destination-error:hover,
.destination-no-results:hover {
    background: white;
}

.destination-error {
    color: #dc3545;
}

/* Scrollbar Styling */
.destination-dropdown::-webkit-scrollbar,
.destination-results-mobile::-webkit-scrollbar {
    width: 6px;
}

.destination-dropdown::-webkit-scrollbar-track,
.destination-results-mobile::-webkit-scrollbar-track {
    background: #f8f9fa;
}

.destination-dropdown::-webkit-scrollbar-thumb,
.destination-results-mobile::-webkit-scrollbar-thumb {
    background: #ced4da;
    border-radius: 3px;
}

.destination-dropdown::-webkit-scrollbar-thumb:hover,
.destination-results-mobile::-webkit-scrollbar-thumb:hover {
    background: #adb5bd;
}

/* Desktop Styles */
@media (min-width: 769px) {
    .destination-overlay {
        display: none !important;
    }
    
    .destination-item {
        padding: 0.875rem 1rem;
    }
    
    .destination-item-full {
        padding: 0.875rem 1rem;
    }
    
    .destination-fulltext {
        white-space: nowrap;
        font-size: 0.9375rem;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .destination-dropdown {
        display: none !important;
    }
    
    .destination-item {
        padding: 1rem;
    }
    
    .destination-item-full {
        padding: 1rem;
    }

    .destination-icon {
        width: 24px;
        height: 24px;
    }
    
    .destination-fulltext {
        white-space: normal;
        font-size: 0.9375rem;
    }
    
    .destination-separator {
        font-size: 0.6875rem;
        padding: 0.625rem 1rem;
    }
}
