.stop-picker-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 2000;
    display: none;
    flex-direction: column;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.picker-header {
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid #f1f5f9;
}

.picker-back-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #64748b;
    cursor: pointer;
    padding: 5px;
}

.picker-search-box {
    flex: 1;
    position: relative;
}

.picker-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    outline: none;
    background: #f8fafc;
}

.picker-input:focus {
    border-color: #6366f1;
}

.picker-content {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 30px;
}

.suggestion-group-title {
    padding: 15px 20px 10px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stop-item {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: background 0.2s;
}

.stop-item:hover {
    background: #f8fafc;
}

.stop-icon {
    width: 40px;
    height: 40px;
    background: #f1f5f9;
    color: #64748b;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.stop-info {
    flex: 1;
}

.stop-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 1rem;
}

.stop-meta {
    font-size: 0.8rem;
    color: #64748b;
}

.current-location-btn {
    margin: 20px;
    padding: 15px;
    background: #3b82f6;
    color: #fff;
    border-radius: 12px;
    text-align: center;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Dark Mode Support for Picker */
[data-theme="dark"] .stop-picker-overlay {
    background: #1e293b;
    color: #f8fafc;
}

[data-theme="dark"] .picker-header {
    border-bottom-color: #334155;
}

[data-theme="dark"] .picker-input {
    background: #0f172a;
    color: white;
    border-color: #334155;
    caret-color: white;
}

[data-theme="dark"] .stop-item:hover {
    background-color: #334155;
    color: #f8fafc;
}

[data-theme="dark"] .stop-icon {
    background: #334155;
    color: #94a3b8;
}

[data-theme="dark"] .stop-name {
    color: #f8fafc;
}

[data-theme="dark"] .stop-desc {
    color: #94a3b8;
}

[data-theme="dark"] .picker-back-btn {
    color: #f8fafc;
}

[data-theme="dark"] .suggestion-group-title {
    color: #94a3b8;
}

/* Fix "Use My Location" & "Choose on Map" buttons in Dark Mode */
[data-theme="dark"] .current-location-btn {
    background: var(--primary);
    /* Keep blue or make darker? Blue is fine. */
    color: white;
    /* Ensure icon/text is white */
}

[data-theme="dark"] .choose-on-map-btn {
    background-color: #1e293b;
    color: #f8fafc;
    border: 1px solid #334155;
}

[data-theme="dark"] .choose-on-map-icon {
    background: #334155;
    color: #94a3b8;
}

[data-theme="dark"] .stop-icon {
    background: #334155;
    color: #94a3b8;
}

[data-theme="dark"] .stop-name {
    color: #f8fafc;
}

[data-theme="dark"] .stop-desc {
    color: #94a3b8;
}

[data-theme="dark"] .picker-back-btn {
    color: #f8fafc;
}

[data-theme="dark"] .suggestion-group-title {
    color: #94a3b8;
}

/* Location Picker Option Buttons */
.location-option-btn {
    border-bottom: 1px solid var(--border);
    background: #f8fafc;
}

.location-option-btn.use-location .stop-icon {
    background: #dbeafe;
    /* Light Blue */
    color: #2563eb;
}

.location-option-btn.use-location .stop-name {
    color: #2563eb;
    font-weight: 600;
}

.location-option-btn.choose-map .stop-icon {
    background: #d1fae5;
    /* Light Green */
    color: #059669;
}

.location-option-btn.choose-map .stop-name {
    color: #059669;
    font-weight: 600;
}

/* Dark Mode Overrides for Options */
[data-theme="dark"] .location-option-btn {
    background: #1e293b;
    border-bottom-color: #334155;
}

[data-theme="dark"] .location-option-btn.use-location .stop-icon {
    background: #1e3a8a;
    /* Dark Blue */
    color: #93c5fd;
}

[data-theme="dark"] .location-option-btn.use-location .stop-name {
    color: #93c5fd;
}

[data-theme="dark"] .location-option-btn.choose-map .stop-icon {
    background: #064e3b;
    /* Dark Green */
    color: #6ee7b7;
}

[data-theme="dark"] .location-option-btn.choose-map .stop-name {
    color: #6ee7b7;
}