/* Form Controls */
.form-group { margin-bottom: 1rem; }
.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.35rem;
}

.form-input {
    width: 100%;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border);
    padding: 0.7rem 0.9rem;
    border-radius: 0.75rem;
    color: var(--text);
    font-family: var(--font);
    font-size: 0.9rem;
    transition: border-color 0.2s;
}

.form-input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-input::placeholder { color: var(--text-muted); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.9rem;
    font-family: var(--font);
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #0ea5e9);
    color: #fff;
    width: 100%;
}

.btn-primary:hover {
    box-shadow: 0 0 25px var(--primary-glow);
    transform: translateY(-1px);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    color: var(--text);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-icon {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.4rem;
    border-radius: 0.5rem;
    font-size: 1.1rem;
    transition: all 0.2s;
}

.btn-icon:hover { color: var(--primary); background: var(--bg-glass); }

/* Stop Entry */
.stop-entry {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    animation: fadeUp 0.3s ease;
}

.stop-entry .form-input { flex: 1; }
.stop-entry .stop-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--orange);
    flex-shrink: 0;
}

.stop-entry .stop-dot.origin { background: var(--success); }
.stop-entry .stop-dot.dest { background: var(--danger); }

/* Travel Mode Selector */
.mode-selector {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.mode-btn {
    flex: 1;
    padding: 0.6rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border);
    background: var(--bg-glass);
    color: var(--text-secondary);
    font-size: 1.1rem;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}

.mode-btn.active {
    border-color: var(--primary);
    background: rgba(56,189,248,0.1);
    color: var(--primary);
}

.mode-btn:hover { border-color: var(--primary); }

/* Loading */
.loading-dots {
    display: flex;
    gap: 6px;
    justify-content: center;
    padding: 2rem;
}

.loading-dots span {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--primary);
    animation: bounce 1.4s infinite ease-in-out both;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* Result Cards */
.result-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.2s;
}

.result-card:hover {
    border-color: rgba(56,189,248,0.2);
}

.result-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.result-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.stat-item {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 0.75rem;
    text-align: center;
}

.stat-item .stat-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-item .stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Day Card */
.day-card {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.25rem;
    margin-bottom: 0.75rem;
}

.day-card .day-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.day-card .day-title .day-num {
    background: var(--primary);
    color: #fff;
    width: 24px; height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.place-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

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

.place-icon {
    width: 32px; height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

.place-info { flex: 1; }
.place-info .place-name { font-weight: 600; font-size: 0.9rem; }
.place-info .place-desc { color: var(--text-muted); font-size: 0.8rem; margin-top: 2px; }

/* Toast */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 0.75rem 1.5rem;
    border-radius: 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    backdrop-filter: blur(12px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    white-space: nowrap;
    max-width: 90vw;
    overflow: hidden;
    text-overflow: ellipsis;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Saved Trips */
.saved-trip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.saved-trip:hover {
    border-color: var(--primary);
    background: rgba(56,189,248,0.05);
}

.saved-trip .trip-info { flex: 1; }
.saved-trip .trip-name { font-weight: 600; font-size: 0.85rem; }
.saved-trip .trip-meta { font-size: 0.75rem; color: var(--text-muted); }

/* City tooltip */
.city-tooltip {
    background: rgba(10,15,30,0.92) !important;
    border: 1px solid rgba(251,191,36,0.3) !important;
    color: #fbbf24 !important;
    font-size: 0.7rem !important;
    font-weight: 600 !important;
    padding: 2px 8px !important;
    border-radius: 6px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4) !important;
}
.leaflet-tooltip.city-tooltip::before {
    border-top-color: rgba(251,191,36,0.3) !important;
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, var(--bg-glass) 25%, rgba(255,255,255,0.08) 50%, var(--bg-glass) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 0.5rem;
    height: 1rem;
    margin-bottom: 0.5rem;
}
