/* HERE Autosuggest Styles */

.here-autosuggest-container {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    margin-top: -1px;
}

.here-autosuggest-container.active {
    display: block;
}

.here-suggestion-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.here-suggestion-item:last-child {
    border-bottom: none;
}

.here-suggestion-item:hover,
.here-suggestion-item.active {
    background-color: #f5f5f5;
}

.suggestion-content {
    flex: 1;
    min-width: 0;
}

.suggestion-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
    line-height: 1.4;
}

.suggestion-address {
    font-size: 12px;
    color: #666;
    line-height: 1.3;
}

.suggestion-icon {
    flex-shrink: 0;
    margin-left: 12px;
    color: #999;
    font-size: 16px;
}

.suggestion-icon i {
    display: block;
}

/* RTL Support */
[dir="rtl"] .here-autosuggest-container {
    left: auto;
    right: 0;
}

[dir="rtl"] .suggestion-icon {
    margin-left: 0;
    margin-right: 12px;
}

/* Scrollbar Styling */
.here-autosuggest-container::-webkit-scrollbar {
    width: 6px;
}

.here-autosuggest-container::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.here-autosuggest-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.here-autosuggest-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Mobile Responsiveness */
@media (max-width: 991px) {
    .here-autosuggest-container {
        max-height: 300px;
    }
    
    .here-suggestion-item {
        padding: 10px 14px;
    }
    
    .suggestion-title {
        font-size: 13px;
    }
    
    .suggestion-address {
        font-size: 11px;
    }
}

/* HERE Map Confirmation Modal */
.here-map-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.here-map-modal-content {
    background: #fff;
    border-radius: 8px;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.here-map-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e0e0e0;
}

.here-map-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.here-map-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: color 0.3s ease;
}

.here-map-modal-close:hover {
    color: #333;
}

.here-map-modal-body {
    padding: 24px;
    flex: 1;
    overflow-y: auto;
}

.here-map-instructions {
    margin-top: 16px;
    padding: 12px 16px;
    background: #f5f5f5;
    border-radius: 4px;
    border-left: 3px solid #377dff;
}

.here-map-instructions p {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.here-map-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid #e0e0e0;
}

.here-map-btn-cancel,
.here-map-btn-confirm {
    padding: 10px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.here-map-btn-cancel {
    background: #f5f5f5;
    color: #333;
}

.here-map-btn-cancel:hover {
    background: #e0e0e0;
}

.here-map-btn-confirm {
    background: #000;
    color: #fff;
}

.here-map-btn-confirm:hover {
    background: #333;
}

.here-map-btn-confirm:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Mobile Responsiveness for Modal */
@media (max-width: 768px) {
    .here-map-modal {
        padding: 10px;
    }
    
    .here-map-modal-content {
        max-width: 100%;
        max-height: 95vh;
    }
    
    .here-map-modal-header {
        padding: 16px 20px;
    }
    
    .here-map-modal-header h3 {
        font-size: 18px;
    }
    
    .here-map-modal-body {
        padding: 16px;
    }
    
    #here-map-container {
        height: 300px !important;
    }
    
    .here-map-modal-footer {
        padding: 16px 20px;
        flex-direction: column;
    }
    
    .here-map-btn-cancel,
    .here-map-btn-confirm {
        width: 100%;
    }
}

